Fix minimum dt value (was setting it to be <1/30 by accident)

This commit is contained in:
Phillip Stephens 2021-06-06 13:27:15 -07:00
parent 6ff7e06c15
commit 4845ea605a
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ public:
using delta_duration = std::chrono::duration<float, std::ratio<1>>;
realDt = std::chrono::duration_cast<delta_duration>(now - m_prevFrameTime).count();
if (m_cvarCommons.m_variableDt->toBoolean()) {
dt = std::min(realDt, 1 / 30.f);
dt = std::max(realDt, 1 / 30.f);
}
}
m_prevFrameTime = now;