SA-MP Forums Archive
Question about timers.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question about timers.. (/showthread.php?tid=177195)



Question about timers.. - Fedee! - 16.09.2010

Well, I have this timers:

pawn Код:
SetTimer("AreaUpdate", 2000, 1);
SetTimer("VHPBarUpdate", 1000, 1);
SetTimer("WeatherRefresh", 300000 , 1);
SetTimer("UpdateTime", 1000, 1);
SetTimer("ZonesPay", 600000 , 1);
SetTimer("TimeUpdate", 950, 1);
My question is: I have 3 timers of 1 sec, if I just put all the script in one timer, that would help on performance side?
Thanks


Re: Question about timers.. - Toni - 16.09.2010

Quote:
Originally Posted by Fedee!
Посмотреть сообщение
Well, I have this timers:

pawn Код:
SetTimer("AreaUpdate", 2000, 1);
SetTimer("VHPBarUpdate", 1000, 1);
SetTimer("WeatherRefresh", 300000 , 1);
SetTimer("UpdateTime", 1000, 1);
SetTimer("ZonesPay", 600000 , 1);
SetTimer("TimeUpdate", 950, 1);
My question is: I have 3 timers of 1 sec, if I just put all the script in one timer, that would help on performance side?
Thanks
I'd think imo, it would be better just to use those multiple timers. At times, you will need to use more then 1 timer, and not optimize.