aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/LoopTimer.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-22 10:59:19 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-22 10:59:19 +0100
commita1a95627c8c2a77530feeee8507b5409616bc54a (patch)
tree0750c8d61139d183dba6ce0ede122012466aac15 /src/crepe/api/LoopTimer.cpp
parent07bca38a27f794ed6a2f74536f7a909530ce7df0 (diff)
fixed loop fix
Diffstat (limited to 'src/crepe/api/LoopTimer.cpp')
-rw-r--r--src/crepe/api/LoopTimer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/api/LoopTimer.cpp b/src/crepe/api/LoopTimer.cpp
index a9800b7..15a0e3a 100644
--- a/src/crepe/api/LoopTimer.cpp
+++ b/src/crepe/api/LoopTimer.cpp
@@ -47,7 +47,7 @@ double LoopTimer::get_fixed_delta_time() const { return this->fixed_delta_time.c
void LoopTimer::set_fps(int fps) {
this->fps = fps;
// target time per frame in seconds
- this->frame_target_time = std::chrono::seconds(1) / fps;
+ this->frame_target_time = std::chrono::duration<double>(1.0) / fps;
}
int LoopTimer::get_fps() const { return this->fps; }