We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fd7a6b commit 3b823a7Copy full SHA for 3b823a7
Managers/TimerMan.cpp
@@ -106,7 +106,7 @@ namespace RTE {
106
m_SimAccumulator += static_cast<long long>(static_cast<float>(timeIncrease) * m_TimeScale);
107
}
108
109
- float maxPossibleSimSpeed = GetDeltaTimeMS() / g_PerformanceMan.GetMSPSUAverage();
+ float maxPossibleSimSpeed = GetDeltaTimeMS() / std::max(g_PerformanceMan.GetMSPSUAverage(), std::numeric_limits<float>::epsilon());
110
111
// Make sure we don't get runaway behind schedule
112
m_SimAccumulator = std::min(m_SimAccumulator, m_DeltaTime + static_cast<long long>(m_DeltaTime * maxPossibleSimSpeed));
0 commit comments