Built game app freezes

My game locks up if it resets (which is just me reloading the same level) using any of my various coded methods (idle timeout, q button, x button, etc) if it has been running for quite a while (more than 2-3 minutes) before the load level code runs.

This may have something to do with my implementation of the intro screen when the level loads up - it sets the timescale to 0, and waits for a keypress to start the game up.

However, it works fine whenever the game is reset before a period of 2-3 minutes expires.

I don’t even know what segments of my code/etc to post up here… no idea if the problem is my fault or Unity’s (likely mine).

Attached is a copy of my executable.

Hmm. This reminds me of a problem I ran into over the summer. If my game was paused by the player for a while, something froze or got really slow, can’t remember what precisely. But eventually it would “catch up” and recover. The longer it was paused (which was done with timeScale = 0) the longer it took to recover.

However, to prove that my code wasn’t at fault I had to rip a lot of it out, and I ran out of time. So I set timeScale to 0.001 or something tiny and left it at that. (One day someone is going to pause my game, then return an hour later and wonder what happened!)

I regret not ever returning to that problem and getting to the bottom of it. Whatever it was, it sounds like you are running into the same thing. Might be a Unity bug, might be something you and I both did wrong.

I might get some time to investigate it next week. In the meantime, if you can reduce the problem to a small example, post it here or submit it as a bug report.

I’ll try.