The game lags when I use add a timer.

I know there are about a million threads along this line. However, none of the ones I found help with my specific issue, so here it goes.


I have a point in my game where I add a 10 second timer. The way this moment in the game runs is that the player is warned that someone is trying to break into their home and the door is about to give. The timer then pops up, alerting them that they have 10 seconds to find a hiding place or get caught. 


The problem I'm dealing with is that the moment the timer pops up, the game starts to lag. Once the timer is off the screen, the lag disappears. I've been trying to figure out how to remove the lag, while keeping the timer.


Thanks in advance.
The timer should always stay on the screen, shouldn't it?  Are you using a plugin?  Have you done something to set it up without using the default timer?


Please show a screenshot of your event where you set the timer and the one where you check the timer, and a screenshot of your game running with the timer active.


I'm thinking it'll have something to do with parallel processes, loops, and your event commands, but am only guessing until I can see how you've done it.
Thanks dude. You were absolutely right about the problem being a loop. 


I removed it and BAM, lag gone.


Thanks again.

Original thread: https://forums.rpgmakerweb.com/threads/the-game-lags-when-i-use-add-a-timer.64188/