From 286270b51e0059da6c0577809cd5ff095dd20a93 Mon Sep 17 00:00:00 2001 From: Struma Date: Fri, 26 Feb 2021 06:25:19 -0500 Subject: [PATCH] Update graphics delta at the start of update --- src/display/graphics.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/display/graphics.cpp b/src/display/graphics.cpp index e6926fc..44e4a05 100644 --- a/src/display/graphics.cpp +++ b/src/display/graphics.cpp @@ -593,6 +593,9 @@ unsigned long long Graphics::getDelta() { void Graphics::update() { p->checkShutDownReset(); + + p->last_update = shState->runTime(); + p->checkSyncLock(); #ifdef MKXPZ_STEAM @@ -619,7 +622,6 @@ void Graphics::update() { p->checkResize(); p->redrawScreen(); - p->last_update = shState->runTime(); } void Graphics::freeze() {