Laggy Input on Maps on high CPU temperatures.

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
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.
 

cabfe

Cool Cat
Veteran
Joined
Jun 13, 2013
Messages
2,353
Reaction score
2,549
First Language
French
Primarily Uses
RMVXA
Since when is it lagging?

What has changed in the meantime (new events, scripts...)?
 

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
Just recently. Only scripts changed.
 

tearsofthenight

Evil Sorcerer/Mystic Key Stealer
Veteran
Joined
Feb 3, 2014
Messages
1,451
Reaction score
167
First Language
English
Primarily Uses
well if your CPU is high temp could your pc's cooling be acting up?
 

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
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.
 

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
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...
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
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.
 
Last edited by a moderator:

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
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.
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
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.
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
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. :p

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. :p

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 :p

So Bex expressed a good point here. And so ksjp17 of course.
 
Last edited by a moderator:

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
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.
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
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... :p :p :p
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
Edited my Post but iam unable to delete it. ....So nothing to see here :)
 
Last edited by a moderator:

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
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. :)
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
What is Effectus?
 

AceOfAces_Mod

Engineering to infinity!
Veteran
Joined
Sep 7, 2014
Messages
1,721
Reaction score
1,200
First Language
Greek
Primarily Uses
RMVXA
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.)
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@Bex

Effectus is this  It is, quite truly, a brilliant script.
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
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?
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top