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
- Changed `count` from 0d9678e to
`updateNumber` and expanded documentation; also moved primary usage back
to local variable.
- Added `updatesThisFrame` which allows (logic) code to detect if it is
the last update, or if there are pending updates the same frame. While
it could be adventageous in certain cases it will be problematic if such
update logic relies in the supplied delta time, as such should change if
fixed-timing is deviated from or extended updates are done.
- Formatting and documentation.
* @property {number} _lastCount - remember how many 'catch-up' iterations were used on the logicUpdate last frame
304
-
* @private
305
-
*/
314
+
* @property {number} _lastCount - remember how many 'catch-up' iterations were used on the logicUpdate last frame
315
+
* @private
316
+
*/
306
317
this._lastCount=0;
307
318
308
319
/**
309
-
* @property {number} _spiralling - if the 'catch-up' iterations are spiralling out of control, this counter is incremented
310
-
* @private
311
-
*/
320
+
* @property {number} _spiralling - if the 'catch-up' iterations are spiralling out of control, this counter is incremented
321
+
* @private
322
+
*/
312
323
this._spiralling=0;
313
324
314
325
/**
315
-
* @property {Phaser.Signal} fpsProblemNotifier - if the game is struggling to maintain the desiredFps, this signal will be dispatched
316
-
* to suggest that the program adjust it's fps closer to the Time.suggestedFps value
317
-
* @public
318
-
*/
326
+
* If the game is struggling to maintain the desired FPS, this signal will be dispatched.
327
+
* The desired/chosen FPS should probably be closer to the {@link Phaser.Time#suggestedFps} value.
328
+
* @property {Phaser.Signal} fpsProblemNotifier
329
+
* @public
330
+
*/
319
331
this.fpsProblemNotifier=newPhaser.Signal();
320
332
321
333
/**
322
-
* @property {boolean} forceSingleUpdate - Should the game loop force a logic update, regardless of the delta timer? Set to true if you know you need this. You can toggle it on the fly.
323
-
*/
334
+
* @property {boolean} forceSingleUpdate - Should the game loop force a logic update, regardless of the delta timer? Set to true if you know you need this. You can toggle it on the fly.
335
+
*/
324
336
this.forceSingleUpdate=false;
325
337
326
338
/**
327
-
* @property {number} _nextNotification - the soonest game.time.time value that the next fpsProblemNotifier can be dispatched
328
-
* @private
329
-
*/
339
+
* @property {number} _nextNotification - the soonest game.time.time value that the next fpsProblemNotifier can be dispatched
340
+
* @private
341
+
*/
330
342
this._nextFpsNotification=0;
331
343
332
344
// Parse the configuration object (if any)
@@ -710,32 +722,39 @@ Phaser.Game.prototype = {
710
722
711
723
// call the game update logic multiple times if necessary to "catch up" with dropped frames
0 commit comments