SA-MP Forums Archive
Question > Timers & Loops & Lag - 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: Question > Timers & Loops & Lag (/showthread.php?tid=559767)



Question > Timers & Loops & Lag - Mamal75 - 25.01.2015

Hello
i have some questions...

1. if i set a 1 second repeat timer that call a callback that have 3 loop (between 0 - 50 >> for(new i; i < 50 .... etc)
it will be make lag on server ? if yes how much and how can i decrease it ?

2. a 300 milisecond repeat timer that make a loop between players who in race ? makes lag ?!

3.In total, repeat timers and loop between players, for example 8 timer which repeat every 500 milisecond and loop players, can lag server ?

Thank you in advance !


Re: Question > Timers & Loops & Lag - ATGOggy - 25.01.2015

The lesser interval of the timer and the more loops in its callback, the more lag you have.


Re: Question > Timers & Loops & Lag - Mamal75 - 25.01.2015

@ATGOggy Thank you for information. REP++

if someone else have different idea, please reply !