diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-07 15:39:23 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-07 15:39:23 +0100 |
commit | f0fba1667882764d4fee426e0c14f6ec3e11cdbc (patch) | |
tree | 12cce274e9415f10541f4cfd2eea99da548f3552 /src/crepe | |
parent | 278e81b4ab039802ced33810aef640e61f1ab47a (diff) |
added line break
Diffstat (limited to 'src/crepe')
-rw-r--r-- | src/crepe/manager/LoopTimerManager.cpp | 1 |
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; |