Speculations about timers
#1

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?
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)