mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed update-after-shutdown issue
This commit is contained in:
parent
5dcb584242
commit
7c00fe87c4
1 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ void BFApp::Process()
|
||||||
mClientUpdateCntF = mUpdateCntF - 1;
|
mClientUpdateCntF = mUpdateCntF - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((int)mClientUpdateCntF < (int)mUpdateCntF)
|
while ((mRunning) && ((int)mClientUpdateCntF < (int)mUpdateCntF))
|
||||||
{
|
{
|
||||||
Update(didUpdateCnt == 0);
|
Update(didUpdateCnt == 0);
|
||||||
didUpdateCnt++;
|
didUpdateCnt++;
|
||||||
|
@ -232,7 +232,7 @@ void BFApp::Process()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only attempt UpdateF updates if our rates aren't nearly the same
|
// Only attempt UpdateF updates if our rates aren't nearly the same
|
||||||
if ((mRefreshRate != 0) && (fabs(physRefreshRate - mRefreshRate) / (float)mRefreshRate > 0.1f))
|
if ((mRunning) && (mRefreshRate != 0) && (fabs(physRefreshRate - mRefreshRate) / (float)mRefreshRate > 0.1f))
|
||||||
{
|
{
|
||||||
float updateFAmt = (float)(mUpdateCntF - mClientUpdateCntF);
|
float updateFAmt = (float)(mUpdateCntF - mClientUpdateCntF);
|
||||||
if ((updateFAmt > 0.05f) && (updateFAmt < 1.0f) && (didUpdateCnt < maxUpdates))
|
if ((updateFAmt > 0.05f) && (updateFAmt < 1.0f) && (didUpdateCnt < maxUpdates))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue