Skip to content

Commit 1b8d130

Browse files
authored
keep Timer think, but shorten duration to interval_per_tick
1 parent 2e697c6 commit 1b8d130

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/TimerSys.cpp

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

237-
RunFrame();
238-
/*
239237
if (g_fUniversalTime >= g_fTimerThink)
240238
{
241239
RunFrame();
242240

243-
g_fTimerThink = CalcNextThink(g_fTimerThink, TIMER_MIN_ACCURACY);
241+
g_fTimerThink = CalcNextThink(g_fTimerThink, gpGlobals->interval_per_tick);
244242
}
245-
*/
243+
246244
RunFrameHooks(simulating);
247245

248246
if (m_pOnGameFrame->GetFunctionCount())

0 commit comments

Comments
 (0)