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/Timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/KingSystem/System/Timer.cpp') diff --git a/src/KingSystem/System/Timer.cpp b/src/KingSystem/System/Timer.cpp index 00749b9f..64aef391 100644 --- a/src/KingSystem/System/Timer.cpp +++ b/src/KingSystem/System/Timer.cpp @@ -4,7 +4,7 @@ namespace ksys { void Timer::update(f32* t, f32 rate) { - *t += VFR::instance()->getDeltaTime() * rate; + *t += VFR::instance()->getDeltaFrame() * rate; } void Timer::update() { -- cgit v1.2.3