We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26e74fe + 7bd0a8d commit d786d4eCopy full SHA for d786d4e
1 file changed
src/core/Game.js
@@ -727,8 +727,8 @@ Phaser.Game.prototype = {
727
// step size taking into account the slow motion speed
728
var slowStep = this.time.slowMotion * 1000.0 / this.time.desiredFps;
729
730
- // accumulate time until the slowStep threshold is met or exceeded
731
- this._deltaTime += Math.max(Math.min(1000, this.time.elapsed), 0);
+ // accumulate time until the slowStep threshold is met or exceeded... up to a limit of 3 catch-up frames at slowStep intervals
+ this._deltaTime += Math.max(Math.min(slowStep * 3, this.time.elapsed), 0);
732
733
// call the game update logic multiple times if necessary to "catch up" with dropped frames
734
// unless forceSingleUpdate is true
0 commit comments