Laggy Input on Maps on high CPU temperatures.

Ok. So as I was playtesting, the input was delayed for some wierd reason even though the game ran 30FPS or higher. Even when I disabled Dekita's Heavily Optimized Input System, it still lags.

The last things that I did recently were modifying the Game_System to fix font errors and add both LoneWolf's Glyph fix and an Arrow fix.

If somebody says, buy Effectus, I would have done it if it wasn't the fact that the banks here closed down. I'm not sure about Anti Lag scripts though.

Any ideas for a fix?

Thank you in advance and sorry for posting this on the wrong subforum.
Since when is it lagging?

What has changed in the meantime (new events, scripts...)?
Just recently. Only scripts changed.
well if your CPU is high temp could your pc's cooling be acting up?
I'm on a laptop. The fan is fairly audible. I cleaned up the fan two months ago. And it always starts with the fans like that...

Maybe because the Laptop Stand that I use (Logitech Alto Express) blocks the vents.

It's not helping the fact that it has 4GB memory RAM. When Chrome is around or something graphical happens, the GPU (Intel HD Graphics HD 3000, Intel Core i3 2328M @2.2GHz) has to reserve System Memory for Graphics Memory. Plus Chrome gets the usage to 70/80% when it's running.
1) Laptops usually try to preserve battery capacity by lowering CPU speed depending on power conditions - you might check those options


2) Vents of a laptop should never be blocked - but usually it's enough to have it stand on a solid surface, the laptop's feet are designed to give the minimum distance neccessary


That said, RM runs mostly on CPU and anything that slows down CPU will sooner or later cause lag. And Intel HD Grafics is CPU-dependent as well, especially with low memory.
1) Laptops usually try to preserve battery capacity by lowering CPU speed depending on power conditions - you might check those options

2) Vents of a laptop should never be blocked - but usually it's enough to have it stand on a solid surface, the laptop's feet are designed to give the minimum distance neccessary

That said, RM runs mostly on CPU and anything that slows down CPU will sooner or later cause lag. And Intel HD Grafics is CPU-dependent as well, especially with low memory.
Yeah, I'm aware of that.

And I only have this laptop to work on the game. I can't do much about it...
Maybe because the Laptop Stand that I use (Logitech Alto Express) blocks the vents.
O.O 

Nooooooo!!!!!

The ventilation must be 100% free of obstacles for at least 5cm around them if not being on the bottom of the laptop. From back and the side vents throw out hot air fast (this MUST be done) and also draw fresh air from elsewhere or from the same vents using separated air flow channels. You clean the vents to keep the air flow. By putting an obstacle you help overheating your  system.

Try these stuff:

1] Put the patop on a solid surface, like a table without a cloth or something. A glass table, a wooden table, it doesn't really matter.

2] Close Chrome, make sure anti virus is not scanning, close vx ace, close everything, let the laptop cool.

3] Start VX Ace after 15 minutes or so and try it.

Now if you still experience lag with good ventilation and from cool CPU status to again an overheated, there are two things to consider check out.

1] If you cleaned the fan yourself, keep in mind that it has a few to three screws that remove a cap that contains the fan and is connected to the copper sheets. In there there is A LOT of dust. It must be opened and cleaned. If you didn't done that, just do it, if you can or give it to a technician to do that. If you sent your PC to service, then they probably did it right. So how can you diagnose that? Well there must be a ventilation that spits out hot air. If not, you just have fans trying to press in the laptop cool air while hot air cant escape. If though you can feel hot air coming out the laptop from the vents easily, it's okay. 

2] I already bought Effectus. It does not fix overheat issues, but it really does work against lag. It's a fantastic script.
Performance Reserves in his Project could be allready on Limit, thats why new Scripts causes Lag.

Or the New Script is fault and realy causes Lag because of unknown reason.

Or he uses some of his Scriptcommands in a Paralell Way which costs much Performance Reserves, which maybe could be fixed with cleaner code.

Or he did some other simple Eventing stuff unrelated to the Scripts in a Paralell Way which costs much Performance Reserves.

Some single stuff which doesnt cause lag when it comes alone can cause lag if such different stuff grows in Numbers.
O.O 

Nooooooo!!!!!

The ventilation must be 100% free of obstacles for at least 5cm around them if not being on the bottom of the laptop. From back and the side vents throw out hot air fast (this MUST be done) and also draw fresh air from elsewhere or from the same vents using separated air flow channels. You clean the vents to keep the air flow. By putting an obstacle you help overheating your  system.

Try these stuff:

1] Put the patop on a solid surface, like a table without a cloth or something. A glass table, a wooden table, it doesn't really matter.

2] Close Chrome, make sure anti virus is not scanning, close vx ace, close everything, let the laptop cool.

3] Start VX Ace after 15 minutes or so and try it.

Now if you still experience lag with good ventilation and from cool CPU status to again an overheated, there are two things to consider check out.

1] If you cleaned the fan yourself, keep in mind that it has a few to three screws that remove a cap that contains the fan and is connected to the copper sheets. In there there is A LOT of dust. It must be opened and cleaned. If you didn't done that, just do it, if you can or give it to a technician to do that. If you sent your PC to service, then they probably did it right. So how can you diagnose that? Well there must be a ventilation that spits out hot air. If not, you just have fans trying to press in the laptop cool air while hot air cant escape. If though you can feel hot air coming out the laptop from the vents easily, it's okay. 

2] I already bought Effectus. It does not fix overheat issues, but it really does work against lag. It's a fantastic script.
Left the laptop for 30+ minutes and nothing changed (though it does run a little cooler). According to Speccy, both motherboard and CPU run at 66-67 oC.

For 1] I need to dissasemble the laptop due to its design. For 2] I tested the Albino Hunter (a RPG Maker game on Steam that uses Effectus) and it runs smooth. It's indeed a good script but I can't buy it (I don't have to explain).

Performance Reserves in his Project could be allready on Limit, thats why new Scripts causes Lag.

Or the New Script is fault and realy causes Lag because of unknown reason.

Or he uses some of his Scriptcommands in a Paralell Way which costs much Performance Reserves, which maybe could be fixed with cleaner code.

Or he did some other simple Eventing stuff unrelated to the Scripts in a Paralell Way which costs much Performance Reserves.

Some single stuff which doesnt cause lag when it comes alone can cause lag if such different stuff grows in Numbers.
How can a script command would be set to parralell? Loop?

Most of the scripts that I use are well known free (Yanfly/Archeia, Dekita, Galv, Mr Bubbles, RPG Maker Source, etc.). I'll link up the script file if you want to take a look.
Have you checked all your Common Events?  Are any of them set to parallel process?  Even check blank-looking slots in case you've got a CE there that you forgot to name.

Check if any of these new scripts use a switch.  If they do, did you check whether that switch is already in use for something else?  It might be that something is running in the background and you don't realise it because of this.  Again check blank-looking slots in your Script Editor in case you forgot to name something.
Left the laptop for 30+ minutes and nothing changed (though it does run a little cooler). According to Speccy, both motherboard and CPU run at 66-67 oC.

For 1] I need to dissasemble the laptop due to its design. 
Yes I know, I am a technician myself, so I disassemble mine once a year. 😛

You can still check out if it is ok by putting your hand near the vents. If you can feel hot air coming out of the laptop in a decent amount and through the whole vent, it is probably ok.

Its also summer time, so air cooling systems lose a little of their efficiency. Using the PC in a controlled enviroment by an air conditioner unit, both helps you endure the heat and the machne will work better, IF it was well cleaned.

The bad thing is that there are people who claim to be technicians, they don't do a good job and they get you a lot of money for it.

You must demand a full disassembly, a true clean and not just blowing some air to the fans to throw away some of the dust.

Here, I will show you where the dust is really accumulated. If you wont disassemble it to that point, you can't reach the dust to put it out.

The dust can become really solid and inpenetratable by air, like a small doormat. 😛

Just take a look. This is 12 months dust into my laptop (I cleaned it again a year ago).

 

https://www.dropbox.com/s/kcxgbntikt2qgea/2015-06-02%2021.56.17.jpg?dl=0

Don't attempt to disassemble your laptop yourself though, if you don't know what you are doing.

Ask a technician to do the job for you. But make sure he/she is trustworthy.

If you know how to do it, just remember to use a dry cloth or something piece of fabric under it, without any fluff or floss or fuzz, you got the picturee, as I do, so nobody will complaint about dirt and dust. You can then take the cloth out of the house, hit it to remove dust and then go back and clean it.

The red is the place the dust is accumulated. Notice on the right that there is a foamy thing. This is there so when the laptop close there will be correct air flow. Do not take this foamy thing off.

With blue I indicate where the small screws were (2 of the three). 

NOW ABOUT YOUR QUESTIONS:

"How can a script command would be set to parralell?"

Use an event command that is on the third page on Event Commands called Script.

You can use a script command that calls a whole script.

Now imagine this on a Parallel Proccess.

Also Parallel Proccess Eventing is heavy too.

Khas Awesome light Effects with no Effectus is laggy by default too.

Bigger resolution is also laggy.

Parallel proccess is refreshed usually  60 times per second.

So... you got the picture. Something is done 60 times per second. That something might be bad for the cpu, Either if it's a script or an event check 😛

So Bex expressed a good point here. And so ksjp17 of course.
Oh my! I found the culprit! I modified Zeus' Fullscreen++ to prevent the Right Alt being pressed with Enter (as was shown on the script's thread) and instead of that, it delayed the input.
Oh my! I found the culprit! I modified Zeus' Fullscreen++ to prevent the Right Alt being pressed with Enter (as was shown on the script's thread) and instead of that, it delayed the input.
Oh my... 😛 😛 😛
Edited my Post but iam unable to delete it. ....So nothing to see here 🙂
The Paralell Event is not the main Problem, its the numbers of it.

But firstly its what code it iterates.

Having Paralell Event and Iterating a Conditional Branch if SwitchX is ON and if yes change actor grafic, is no Problem at all.

But Paralell Event that just executes the Eventcommand Change Actor Grafic everytime, this will cost much Performance and in this case this one alone is enough to

slow down FPS of your Game and make it laggy.

That makes it tricky in big Projects to find the cause.
For the record, Effectus fixes that.

The problem is solved anyway, it was a script miscopnfiguration that did what was done. 🙂
What is Effectus?
http://rpgmakersource.com/ourproducts/effectus/

That is that.

Now that it got fixed, I shall continue debugging the game and create the manual.chm file (and figure out how to buy Effectus).

Onward!

(Thanks everybody for helping me troubleshoot the issue.)
@Bex

Effectus is this  It is, quite truly, a brilliant script.
Looks interesting, this is something the Guys from Enterbrain should take a look at for there next RPG Maker, maybe for there

MORPG Maker 🙂 .

Why aint that Script featured and sold on this Side, like the Luna Engine?

Original thread: https://forums.rpgmakerweb.com/threads/laggy-input-on-maps-on-high-cpu-temperatures.42192/