Added some comments.

This commit is contained in:
Richard Davey 2017-05-09 15:39:59 +01:00
parent 2a19a02d0b
commit 5950bc84a2

View file

@ -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;
};