Speculations 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)
+--- Thread: Speculations about timers (
/showthread.php?tid=299539)
Speculations about timers -
oliverrud - 26.11.2011
Hey forum, I've recently the last pair of days been speculating about timers, and it came across my mind about what would be most effective: 1 main timer that goes every 1 millisecond that would hold everything related to any timers, so you would only have one timer going but it would be going every millisecond.
Or
Just a lot of timers one for each thing you need like at the moment my gamemode has 2 running every second, some running between 1-3 minutes and such.
What would be most efficient?
Re: Speculations about timers -
Calgon - 26.11.2011
You need to balance timers out evenly. Take a look at:
https://sampforum.blast.hk/showthread.php?tid=182948
I'd say 2-3 timers running every 1-2 seconds, but make sure you use GetTickCount/Unix Timestamps where you can.