From 3c081fc2fb3f600674989f57c99eab18fc109c3a Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 30 May 2022 18:07:29 -0700 Subject: [PATCH] Fixed large-update logic --- BeefySysLib/BFApp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BeefySysLib/BFApp.cpp b/BeefySysLib/BFApp.cpp index 7a5d44c9..d95c0907 100644 --- a/BeefySysLib/BFApp.cpp +++ b/BeefySysLib/BFApp.cpp @@ -216,7 +216,7 @@ void BFApp::Process() int didUpdateCnt = 0; - if (mClientUpdateCntF - mUpdateCntF > physRefreshRate / 2) + if (mUpdateCntF - mClientUpdateCntF > physRefreshRate / 2) { // Too large of a difference, just sync mClientUpdateCntF = mUpdateCntF - 1; @@ -231,7 +231,7 @@ void BFApp::Process() break; } - // Only attempt UpdateF updates if our rates aren't nearl) the same + // Only attempt UpdateF updates if our rates aren't nearly the same if ((mRefreshRate != 0) && (fabs(physRefreshRate - mRefreshRate) / (float)mRefreshRate > 0.1f)) { float updateFAmt = (float)(mUpdateCntF - mClientUpdateCntF);