Fixed fixed update stuttering

This commit is contained in:
Antoine Pilote
2023-07-06 23:11:58 -04:00
parent 263b4f7389
commit 90968ee7ba

View File

@@ -69,11 +69,11 @@ namespace Nuake
m_FixedUpdateDifference += m_TimeStep;
// Fixed update
if (m_FixedUpdateDifference >= m_FixedUpdateRate)
while (m_FixedUpdateDifference >= m_FixedUpdateRate)
{
CurrentWindow->FixedUpdate(m_FixedUpdateDifference);
m_FixedUpdateDifference = 0.0f;
m_FixedUpdateDifference -= m_FixedUpdateRate;
}
}
else