summaryrefslogtreecommitdiff
path: root/src/KingSystem/System/SystemTimers.cpp
diff options
context:
space:
mode:
authorBriggs Baltzell <b3apollo13@gmail.com>2023-07-01 15:29:40 -0500
committerGitHub <noreply@github.com>2023-07-01 21:29:40 +0100
commitfd527f92164b8efdb746cffcf23c4f033fbffa76 (patch)
tree492976adfdf031252c85de91a185bfd625738a0c /src/KingSystem/System/SystemTimers.cpp
parentbdd6e57d63bde1714fb42197ac4080833ac6b572 (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.cpp2
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) {