SetTimerEx or SetTimer+foreach ?
#9

I don't know exactly how timers in SA-MP work, but here's a likely theory:

In the server's main 'timer', all timers are looped through to see whether they are needed to be called. This means, if you have a lot of timers, it's looping through a LOT more timers to check whether they need to be called. It's also possible that expired timers are also checked, which means using a timer for every player is likely less efficient.

I think ****** said something regarding this once.
Reply


Messages In This Thread
SetTimerEx or SetTimer+foreach ? - by iJumbo - 10.04.2013, 23:44
Re: SetTimerEx or SetTimer+foreach ? - by CaRa - 11.04.2013, 00:01
Re: SetTimerEx or SetTimer+foreach ? - by iJumbo - 11.04.2013, 00:03
Re: SetTimerEx or SetTimer+foreach ? - by CaRa - 11.04.2013, 00:05
Re: SetTimerEx or SetTimer+foreach ? - by thefatshizms - 11.04.2013, 00:08
Re: SetTimerEx or SetTimer+foreach ? - by iJumbo - 11.04.2013, 00:08
Re: SetTimerEx or SetTimer+foreach ? - by Pottus - 11.04.2013, 00:12
Re: SetTimerEx or SetTimer+foreach ? - by iJumbo - 11.04.2013, 00:28
Re: SetTimerEx or SetTimer+foreach ? - by MP2 - 11.04.2013, 00:30
Re: SetTimerEx or SetTimer+foreach ? - by Pottus - 11.04.2013, 00:51

Forum Jump:


Users browsing this thread: 1 Guest(s)