From a1a95627c8c2a77530feeee8507b5409616bc54a Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Fri, 22 Nov 2024 10:59:19 +0100 Subject: fixed loop fix --- src/crepe/api/LoopTimer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crepe/api/LoopTimer.cpp') 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(1.0) / fps; } int LoopTimer::get_fps() const { return this->fps; } -- cgit v1.2.3