From b52e414ac3e1cae97f689069f919dd3958e51997 Mon Sep 17 00:00:00 2001 From: stephanie sappho lenzo Date: Mon, 3 Jul 2023 04:33:34 -0400 Subject: [PATCH] Run timers every tick instead of arbitrarily on 100ms thinks, adding a significantly higher amount of precision --- core/TimerSys.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/TimerSys.cpp b/core/TimerSys.cpp index 2084b153e..8a2987f86 100644 --- a/core/TimerSys.cpp +++ b/core/TimerSys.cpp @@ -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())