Small Question - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Small Question (
/showthread.php?tid=235818)
Small Question -
wups - 06.03.2011
What is better:
One 100ms timer with a foreach Loop?
OR
A 100ms timer for every player?
Re: Small Question -
Calgon - 06.03.2011
Option 1) One 100ms timer with a foreach Loop
I can't provide any valid evidence towards why option 1 would be the best option, but I've tried to run 30+ timers before and the gamemode just completely lagged out, the functions just contained MoveObject(). Whereas I usually have regular repeating timers with foreach in for player-based timing.
100ms is a bit hectic though, why not 500+ MS?
Re: Small Question -
wups - 06.03.2011
Thanks. 500 ms for a clock speedometer is bad.