Update Time.cpp

This commit is contained in:
Diego Fonseca
2023-12-08 14:13:50 -05:00
parent 306dd43b18
commit 4707f98fab

View File

@@ -160,7 +160,7 @@ bool Time::FixedStepTickData::OnTickBegin(float targetFps, float maxDeltaTime)
if (targetFps > ZeroTolerance)
{
int skip = (int)(1 + (time - NextBegin) / (1.0 / targetFps));
int skip = (int)(1 + (time - NextBegin) * targetFps);
NextBegin += (1.0 / targetFps) * skip;
}
}