mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-06 18:08:36 +00:00
Run timers every tick instead of arbitrarily on 100ms thinks, adding a significantly higher amount of precision
This commit is contained in:
parent
5615db767f
commit
b52e414ac3
@ -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())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user