mirror of https://github.com/axmolengine/axmol.git
Correct last delta time (#18898)
If next delta time was zeroed (via setNextDeltaTimeZero) the last update time was not corrected.
This commit is contained in:
parent
6a52b3ff4a
commit
a6530a5aca
|
@ -376,6 +376,7 @@ void Director::calculateDeltaTime()
|
||||||
{
|
{
|
||||||
_deltaTime = 0;
|
_deltaTime = 0;
|
||||||
_nextDeltaTimeZero = false;
|
_nextDeltaTimeZero = false;
|
||||||
|
_lastUpdate = std::chrono::steady_clock::now();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue