aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-10 09:57:12 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-10 09:57:12 +0100
commitaae935bfa77f5bb9c4d2e245ac4fac3c7f4beeb7 (patch)
tree5d958b035e4a0b38e495354b2426f38681c246c5
parent8a3dd5ac472a0c749338ac78dd5198d3819b629f (diff)
changed infinity to 0
-rw-r--r--src/crepe/manager/LoopTimerManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/manager/LoopTimerManager.cpp b/src/crepe/manager/LoopTimerManager.cpp
index 1d864ad..366d48a 100644
--- a/src/crepe/manager/LoopTimerManager.cpp
+++ b/src/crepe/manager/LoopTimerManager.cpp
@@ -34,7 +34,7 @@ void LoopTimerManager::update() {
if (this->delta_time.count() > 0.0) {
this->actual_fps = 1.0 / this->delta_time.count();
} else {
- this->actual_fps = INFINITY;
+ this->actual_fps = 0;
}
this->elapsed_time += this->delta_time;