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