diff options
| author | Briggs Baltzell <b3apollo13@gmail.com> | 2023-07-01 15:29:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-01 21:29:40 +0100 |
| commit | fd527f92164b8efdb746cffcf23c4f033fbffa76 (patch) | |
| tree | 492976adfdf031252c85de91a185bfd625738a0c /src/KingSystem/System/SystemTimers.cpp | |
| parent | bdd6e57d63bde1714fb42197ac4080833ac6b572 (diff) | |
Added VFR::getDeltaFrame (#122)
* Added getDeltaFrame and changed getDeltaTime
* Replaced getDeltaTime usages with getDeltaFrame
* Moved getDeltaTime above getDeltaFrame
Diffstat (limited to 'src/KingSystem/System/SystemTimers.cpp')
| -rw-r--r-- | src/KingSystem/System/SystemTimers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/KingSystem/System/SystemTimers.cpp b/src/KingSystem/System/SystemTimers.cpp index 4142cfd9..31c87562 100644 --- a/src/KingSystem/System/SystemTimers.cpp +++ b/src/KingSystem/System/SystemTimers.cpp @@ -26,7 +26,7 @@ void SystemTimers::prepareStageUnload() {} void SystemTimers::incrementCountersAndUpdate() { mFrameCounter++; mFrameCounter2++; - f32 deltaTime = VFR::instance()->getDeltaTime(); + f32 deltaTime = VFR::instance()->getDeltaFrame(); mVfrTimer += deltaTime; while (mVfrTimer >= 1) { |
