aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/manager/LoopTimerManager.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-13 18:17:07 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-13 18:17:07 +0100
commit1076fb0e44611c29257b87eaa2cf51ad5046f133 (patch)
treee66d54c588c24bc1a953cdeb0722ade2595b6023 /src/crepe/manager/LoopTimerManager.cpp
parent1d1c256eea43a3d0685919ed2997e10990ef639f (diff)
parent8f20aac54aed1a060d59d5169276ef3ed33a8dc9 (diff)
merge master
Diffstat (limited to 'src/crepe/manager/LoopTimerManager.cpp')
-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 a98a29d..e78f92f 100644
--- a/src/crepe/manager/LoopTimerManager.cpp
+++ b/src/crepe/manager/LoopTimerManager.cpp
@@ -31,7 +31,7 @@ void LoopTimerManager::update() {
this->delta_time = this->maximum_delta_time;
}
if (this->delta_time > 0s) {
- this->actual_fps = 1.0 / duration_cast<seconds>(this->delta_time).count();
+ this->actual_fps = static_cast<unsigned>(1.0 / this->delta_time.count());
} else {
this->actual_fps = 0;
}