mirror of https://github.com/axmolengine/axmol.git
closed #3509: PhysicsBody moves randomly when switch foreground/background.
This commit is contained in:
parent
c2ce7b91d6
commit
bc13956981
|
@ -1027,6 +1027,9 @@ void DisplayLinkDirector::startAnimation()
|
||||||
_invalid = false;
|
_invalid = false;
|
||||||
|
|
||||||
Application::getInstance()->setAnimationInterval(_animationInterval);
|
Application::getInstance()->setAnimationInterval(_animationInterval);
|
||||||
|
|
||||||
|
// fix issue #3509, skip one fps to avoid incorrect time calculation.
|
||||||
|
setNextDeltaTimeZero(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisplayLinkDirector::mainLoop()
|
void DisplayLinkDirector::mainLoop()
|
||||||
|
|
Loading…
Reference in New Issue