aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;