16.03.2012, 20:45
Hello fellow scripters,
I am working on a timer script and I have a few questions about timers. On the SA:MP wiki, they tell you that timers would cause increase youre amount of cpu/memory usage if youґd use many of them.(lag)
1. Does the repeat time of a timer have influence on the amount of lag caused by timers? For instance, you have a timer wich repeats something every second, and a timer that repeats something every 10 ms. Does the 10 ms use more cpu/memory space?
2. Is the amount of functions you call in `public timername()` related to causing more or less lag? Would calling more functions there influence the cpu/memory usage?
3.Scripting question: Is it possible to create youre own custom animations with PAWN?
Thanks alot in advance.
Cheers,
Cpt.Falcon
I am working on a timer script and I have a few questions about timers. On the SA:MP wiki, they tell you that timers would cause increase youre amount of cpu/memory usage if youґd use many of them.(lag)
1. Does the repeat time of a timer have influence on the amount of lag caused by timers? For instance, you have a timer wich repeats something every second, and a timer that repeats something every 10 ms. Does the 10 ms use more cpu/memory space?
2. Is the amount of functions you call in `public timername()` related to causing more or less lag? Would calling more functions there influence the cpu/memory usage?
3.Scripting question: Is it possible to create youre own custom animations with PAWN?
Thanks alot in advance.
Cheers,
Cpt.Falcon