diff --git a/cocos/2d/CCDirector.cpp b/cocos/2d/CCDirector.cpp index 40468aa179..54a60e4640 100644 --- a/cocos/2d/CCDirector.cpp +++ b/cocos/2d/CCDirector.cpp @@ -847,13 +847,10 @@ void Director::resume() setAnimationInterval(_oldAnimationInterval); - if (gettimeofday(_lastUpdate, nullptr) != 0) - { - CCLOG("cocos2d: Director: Error in gettimeofday"); - } - _paused = false; _deltaTime = 0; + // fix issue #3509, skip one fps to avoid incorrect time calculation. + setNextDeltaTimeZero(true); } // display the FPS using a LabelAtlas