closed #3509: PhysicsBody moves randomly when switch foreground/background.

This commit is contained in:
boyu0 2014-03-21 15:16:55 +08:00
parent c2ce7b91d6
commit bc13956981
1 changed files with 3 additions and 0 deletions

View File

@ -1027,6 +1027,9 @@ void DisplayLinkDirector::startAnimation()
_invalid = false;
Application::getInstance()->setAnimationInterval(_animationInterval);
// fix issue #3509, skip one fps to avoid incorrect time calculation.
setNextDeltaTimeZero(true);
}
void DisplayLinkDirector::mainLoop()