aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/manager/LoopTimerManager.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-07 14:51:12 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-07 14:51:12 +0100
commitf05458cdbf68e8efe1ed812f57e957921921941d (patch)
tree45fd1fa1c7d57c4686b69bc55b65c982de6a32f3 /src/crepe/manager/LoopTimerManager.cpp
parenta06ea7d18008d0859818f7e8fd3e595e7dd05772 (diff)
more doxygen changes
Diffstat (limited to 'src/crepe/manager/LoopTimerManager.cpp')
-rw-r--r--src/crepe/manager/LoopTimerManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/manager/LoopTimerManager.cpp b/src/crepe/manager/LoopTimerManager.cpp
index 8156c6d..2379fdd 100644
--- a/src/crepe/manager/LoopTimerManager.cpp
+++ b/src/crepe/manager/LoopTimerManager.cpp
@@ -38,7 +38,7 @@ void LoopTimerManager::update() {
this->last_frame_time = current_frame_time;
}
-double LoopTimerManager::get_delta_time() const { return this->delta_time.count() * this->game_scale; }
+double LoopTimerManager::get_delta_time() const { return this->delta_time.count() * this->time_scale; }
double LoopTimerManager::get_current_time() const { return this->elapsed_time.count(); }
@@ -54,9 +54,9 @@ void LoopTimerManager::set_target_fps(int fps) {
int LoopTimerManager::get_fps() const { return this->actual_fps; }
-void LoopTimerManager::set_time_scale(double value) { this->game_scale = value; }
+void LoopTimerManager::set_time_scale(double value) { this->time_scale = value; }
-double LoopTimerManager::get_time_scale() const { return this->game_scale; }
+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;