diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-14 13:40:21 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-14 13:40:21 +0100 |
commit | 2389b23459cf5b01c6ea1cbbcfeb2043e26e0a0c (patch) | |
tree | 6a5322838386657d90ff69776876262740774a7a /src/crepe/manager/LoopTimerManager.cpp | |
parent | ccbfb97a11cd931655f2762443ffc36f5f25e86f (diff) | |
parent | 876896e50711509e80ef551b4e8ad440e8039b97 (diff) |
Merge branch 'master' of https://github.com/lonkaars/crepe into wouter/inputSystem
Diffstat (limited to 'src/crepe/manager/LoopTimerManager.cpp')
-rw-r--r-- | src/crepe/manager/LoopTimerManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/manager/LoopTimerManager.cpp b/src/crepe/manager/LoopTimerManager.cpp index 9819632..a6e4788 100644 --- a/src/crepe/manager/LoopTimerManager.cpp +++ b/src/crepe/manager/LoopTimerManager.cpp @@ -31,7 +31,7 @@ void LoopTimerManager::update() { this->delta_time = this->maximum_delta_time; } if (this->delta_time > 0s) { - this->actual_fps = 1.0 / duration_cast<seconds>(this->delta_time).count(); + this->actual_fps = static_cast<unsigned>(1.0 / this->delta_time.count()); } else { this->actual_fps = 0; } |