summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-03 05:20:01 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-03 05:20:01 +0100
commit0ec9ab2a67ba246b50d266376e0cb2819f940960 (patch)
treed50e229ed47d338dbb58c78a5979d95b3376c4df /main
parent6acc882ac6e3cacc3d538e810df9c8e6998f9432 (diff)
main: actually cap max dt to 5 Hz
Diffstat (limited to 'main')
-rw-r--r--main/draw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index 9da9fbd7..4906c889 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -173,7 +173,7 @@ void main_impl::do_update()
timeline.nextFrame();
}
- dt = std::clamp(dt, 1e-5f, std::fmaxf(5e-2f, dt_expected.value));
+ dt = std::clamp(dt, 1e-5f, std::fmaxf(.2f, dt_expected.value));
app.update(dt);
}