From fd527f92164b8efdb746cffcf23c4f033fbffa76 Mon Sep 17 00:00:00 2001 From: Briggs Baltzell Date: Sat, 1 Jul 2023 15:29:40 -0500 Subject: Added VFR::getDeltaFrame (#122) * Added getDeltaFrame and changed getDeltaTime * Replaced getDeltaTime usages with getDeltaFrame * Moved getDeltaTime above getDeltaFrame --- src/KingSystem/System/SystemTimers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/KingSystem/System/SystemTimers.cpp') 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) { -- cgit v1.2.3