aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-07 15:39:23 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-07 15:39:23 +0100
commitf0fba1667882764d4fee426e0c14f6ec3e11cdbc (patch)
tree12cce274e9415f10541f4cfd2eea99da548f3552 /src
parent278e81b4ab039802ced33810aef640e61f1ab47a (diff)
added line break
Diffstat (limited to 'src')
-rw-r--r--src/crepe/manager/LoopTimerManager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crepe/manager/LoopTimerManager.cpp b/src/crepe/manager/LoopTimerManager.cpp
index 9bf30ae..e30b90d 100644
--- a/src/crepe/manager/LoopTimerManager.cpp
+++ b/src/crepe/manager/LoopTimerManager.cpp
@@ -63,6 +63,7 @@ int LoopTimerManager::get_fps() const { return this->actual_fps; }
void LoopTimerManager::set_time_scale(double value) { this->time_scale = value; }
double LoopTimerManager::get_time_scale() const { return this->time_scale; }
+
void LoopTimerManager::enforce_frame_rate() {
auto current_frame_time = std::chrono::steady_clock::now();
auto frame_duration = current_frame_time - this->last_frame_time;