mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-05-13 16:31:21 +00:00
Yeah, I'm an idiot, std::min is the correct one
This commit is contained in:
parent
7a7af73c94
commit
0b523f98c3
@ -447,7 +447,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::max(realDt, 1 / 30.f);
|
dt = std::min(realDt, 1 / 30.f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_prevFrameTime = now;
|
m_prevFrameTime = now;
|
||||||
|
2
extern/imgui
vendored
2
extern/imgui
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 8877eab3933c7031e2b41f372b852618db219489
|
Subproject commit 23a15834fa23226bd26a17f5142b00678617fec4
|
Loading…
x
Reference in New Issue
Block a user