Skip to content

Commit 2e697c6

Browse files
committed
Run timers every tick instead of arbitrarily on 100ms thinks, adding a significantly higher amount of precision
1 parent 6ebf04b commit 2e697c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/TimerSys.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,15 @@ void TimerSystem::GameFrame(bool simulating)
234234
m_fLastTickedTime = gpGlobals->curtime;
235235
m_bHasMapTickedYet = true;
236236

237+
RunFrame();
238+
/*
237239
if (g_fUniversalTime >= g_fTimerThink)
238240
{
239241
RunFrame();
240242
241243
g_fTimerThink = CalcNextThink(g_fTimerThink, TIMER_MIN_ACCURACY);
242244
}
243-
245+
*/
244246
RunFrameHooks(simulating);
245247

246248
if (m_pOnGameFrame->GetFunctionCount())

0 commit comments

Comments
 (0)