You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we're not doing something wrong, then this is a bug, but we are not really sure, so please investigate further.
When game loses focus and then gains it back, all animations skip frames (as if they have never paused). They pause correctly, but they use Game.time.now to check for next frame and it seems that Game.time.now is not reset after page focus gain.
We think that this code in time/Time.js should be corrected:
gameResumed: function(){
...
// Level out the elapsed timer to avoid spikesthis.time=Date.now();
...
},
And this seems to work:
gameResumed: function(){
...
// Level out the elapsed timer to avoid spikesthis.time=this.now=Date.now();// Reseting this.now also.
...
},
Thanks for your time!
The text was updated successfully, but these errors were encountered:
If we're not doing something wrong, then this is a bug, but we are not really sure, so please investigate further.
When game loses focus and then gains it back, all animations skip frames (as if they have never paused). They pause correctly, but they use
Game.time.now
to check for next frame and it seems thatGame.time.now
is not reset after page focus gain.We think that this code in
time/Time.js
should be corrected:And this seems to work:
Thanks for your time!
The text was updated successfully, but these errors were encountered: