From 4845ea605ae8ab18a57d64815b7a23db945fcfd4 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sun, 6 Jun 2021 13:27:15 -0700 Subject: [PATCH] Fix minimum dt value (was setting it to be <1/30 by accident) --- Runtime/CMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/CMain.cpp b/Runtime/CMain.cpp index 6fbd35d03..304986231 100644 --- a/Runtime/CMain.cpp +++ b/Runtime/CMain.cpp @@ -405,7 +405,7 @@ public: using delta_duration = std::chrono::duration>; realDt = std::chrono::duration_cast(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;