User: bblizzard
Bug: Game freezes after window is left unfocused for a while.
How to Replicate the Bug:
rather than:
As JavaScript uses double-precision floating point values internally, this leads me to believe that this bug might be caused by a floating point precision error after a while which is why the bug usually only happened after leaving the game running in background for a while. In any case, I am pretty confident that changing this if condition will fix the issue. I did a drop-in change of the method in the console and the game unfroze.
Bug: Game freezes after window is left unfocused for a while.
How to Replicate the Bug:
- Start up a game.
- Switch focus to something else and leave the game running in background for usually 20-30 minutes. (I am not 100% sure that a longer time frame is required or not. I provided more info below.)
- The bug doesn't reproduce every time. I experienced it only a handful of times in hundreds of runs and switching the focused window.
Code:
if (this._skipCount === 0)
Code:
if (this._skipCount <= 0)