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
Put the Timer.timeCap back to 1000 as this will be a major breaking change to existing code otherwise. It may be incorrect, but it can't happen in this point release.
Copy file name to clipboardExpand all lines: src/time/Timer.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,8 @@ Phaser.Timer = function (game, autoDestroy) {
67
67
/**
68
68
* @property {number} timeCap - If the difference in time between two frame updates exceeds this value, the event times are reset to avoid catch-up situations.
69
69
*/
70
-
this.timeCap=1/60*1000;
70
+
// this.timeCap = 1 / 60 * 1000;
71
+
this.timeCap=1000;
71
72
72
73
/**
73
74
* @property {boolean} paused - The paused state of the Timer. You can pause the timer by calling Timer.pause() and Timer.resume() or by the game pausing.
0 commit comments