aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-08 17:32:11 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-08 17:32:11 +0100
commitcc1b36f4f0a20695bcfc5c16c853cb32312fe70c (patch)
tree17c68e571f80d7d2ce39da99002608fff35f6f5a /src/crepe/api
parent3467c96eff775fccb24a6ecd7c15a7f42660a7ff (diff)
added scaled fixed delta time
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/LoopManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/api/LoopManager.cpp b/src/crepe/api/LoopManager.cpp
index 4d97e16..d17aee1 100644
--- a/src/crepe/api/LoopManager.cpp
+++ b/src/crepe/api/LoopManager.cpp
@@ -48,7 +48,7 @@ void LoopManager::loop() {
while (game_running) {
this->loop_timer.update();
- while (this->loop_timer.get_lag() >= this->loop_timer.get_fixed_delta_time()) {
+ while (this->loop_timer.get_lag() >= this->loop_timer.get_scaled_fixed_delta_time()) {
this->process_input();
this->fixed_update();
this->loop_timer.advance_fixed_update();