From a6530a5aca3bcc5d5b5e45fd28eab1649158cd2b Mon Sep 17 00:00:00 2001 From: AIGRIND Date: Thu, 20 Sep 2018 12:03:30 +0200 Subject: [PATCH] Correct last delta time (#18898) If next delta time was zeroed (via setNextDeltaTimeZero) the last update time was not corrected. --- cocos/base/CCDirector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos/base/CCDirector.cpp b/cocos/base/CCDirector.cpp index 172bf3cd14..f206a3abe7 100644 --- a/cocos/base/CCDirector.cpp +++ b/cocos/base/CCDirector.cpp @@ -376,6 +376,7 @@ void Director::calculateDeltaTime() { _deltaTime = 0; _nextDeltaTimeZero = false; + _lastUpdate = std::chrono::steady_clock::now(); } else {