Information: Timer [2Questions]
#1

can i use 2 timer on the meme time??
Reply
#2

Help please, up
Reply
#3

OnPlayerUpdate is called several times per second. A timer may be called, once or multiple times. Timers are believed to be more efficient that the OnPlayerUpdate function, though, you can differentiate the two depending on the usage. An example would be creating an anti-cheat. If you were to create an effective anti-cheat, calling the timer or function which executes the code several times would decrease the chances of hacking rather, than once. This is true, as there may be a delay within the timer which may cause an interval in between milliseconds for the hack to be initiated. Though, as stated before, it all depends of the usage. y_timers within the YSI directory by ******, may be an easier and more effective solution when dealing with timers. https://sampforum.blast.hk/showthread.php?tid=182948
Reply
#4

Timers use CPU. If your calling a big function then it will use more CPU.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)