SA-MP Forums Archive
Many timers or one timer - 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: Many timers or one timer (/showthread.php?tid=638140)



Many timers or one timer - TheArrow - 27.07.2017

Hi !

I have one question concerning the timers, it's better to use only one big timer or many timers with the same refreshed times ?

This is my current only one timer : https://pastebin.com/kyLJeAx7

Thanks you in advance.


Re: Many timers or one timer - Vince - 27.07.2017

Having multiple timers with little chunks of code is generally preferred over having one timer with lots of code. For better optimization use prime numbers for the intervals so there is less chance of timers colliding.


Re: Many timers or one timer - Bolex_ - 27.07.2017

This tutorial might help you, take a look : CLICK