diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-13 18:14:04 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-13 18:14:04 +0100 |
commit | cd157f835eefd1c7876ba090817a7fca0a0fc085 (patch) | |
tree | fba602762fc8300879da8b5d20105db906d4ebaa /src/crepe/manager/LoopTimerManager.cpp | |
parent | ae80ecde90ea6ab3305deed899bbec1560b93a6f (diff) | |
parent | 8f20aac54aed1a060d59d5169276ef3ed33a8dc9 (diff) |
Merge branch 'master' of github.com:lonkaars/crepe into loek/scripts
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; } |