mirror of https://github.com/AxioDL/metaforce.git
Fix minimum dt value (was setting it to be <1/30 by accident)
This commit is contained in:
parent
6ff7e06c15
commit
4845ea605a
|
@ -405,7 +405,7 @@ public:
|
||||||
using delta_duration = std::chrono::duration<float, std::ratio<1>>;
|
using delta_duration = std::chrono::duration<float, std::ratio<1>>;
|
||||||
realDt = std::chrono::duration_cast<delta_duration>(now - m_prevFrameTime).count();
|
realDt = std::chrono::duration_cast<delta_duration>(now - m_prevFrameTime).count();
|
||||||
if (m_cvarCommons.m_variableDt->toBoolean()) {
|
if (m_cvarCommons.m_variableDt->toBoolean()) {
|
||||||
dt = std::min(realDt, 1 / 30.f);
|
dt = std::max(realDt, 1 / 30.f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_prevFrameTime = now;
|
m_prevFrameTime = now;
|
||||||
|
|
Loading…
Reference in New Issue