Run timers every tick instead of arbitrarily on 100ms thinks, adding a significantly higher amount of precision

This commit is contained in:
stephanie sappho lenzo 2023-07-03 04:33:34 -04:00 committed by Headline
parent 5615db767f
commit b52e414ac3

View File

@ -234,13 +234,15 @@ void TimerSystem::GameFrame(bool simulating)
m_fLastTickedTime = gpGlobals->curtime;
m_bHasMapTickedYet = true;
RunFrame();
/*
if (g_fUniversalTime >= g_fTimerThink)
{
RunFrame();
g_fTimerThink = CalcNextThink(g_fTimerThink, TIMER_MIN_ACCURACY);
}
*/
RunFrameHooks(simulating);
if (m_pOnGameFrame->GetFunctionCount())