Update Time.cpp

This commit is contained in:
Diego Fonseca
2023-12-08 14:35:10 -05:00
parent 4707f98fab
commit c17ff3926a

View File

@@ -104,7 +104,7 @@ bool Time::TickData::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;
}
}