mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Added some comments.
This commit is contained in:
parent
2a19a02d0b
commit
5950bc84a2
1 changed files with 4 additions and 0 deletions
|
@ -1,7 +1,11 @@
|
|||
var GetNextTick = function (component)
|
||||
{
|
||||
// accumulator += delta * _timeScale
|
||||
// after a large delta surge (perf issue for example) we need to adjust for it here
|
||||
|
||||
// When is the next update due?
|
||||
component.accumulator -= component.nextTick;
|
||||
|
||||
component.nextTick = component.msPerFrame + component.currentFrame.duration;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue