SA-MP Forums Archive
This timers may cause 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: This timers may cause lag? (/showthread.php?tid=261733)



This timers may cause lag? - Face9000 - 14.06.2011

Hi guys,i need a fast tip.
I use this timers OnGamemodeInit:

pawn Code:
SetTimer("AutoSave",10000,false);
    SetTimer("Ping_Timer", 10000, true);
    SetTimer("MoneyCheck", 1000, true);
    zonetimer = SetTimer("ZoneUpdate", 2000, true);
    timer1 = SetTimer("AntiCheat",5000,true);
    SetTimer("Messages", 120000, true);
My question is: Does this timers will cause lag with 100+ players online?

Thanks.


Re: This timers may cause lag? - linuxthefish - 14.06.2011

On a powerful server, you will be fine.

EDIT: are you using any file functions?


Re: This timers may cause lag? - Face9000 - 14.06.2011

Quote:
Originally Posted by linuxthefish
View Post
On a powerful server, you will be fine.

EDIT: are you using any file functions?
Yes,i'm using it for registration/login/email system.

I try to use [128] cells instead of [256].


Re: This timers may cause lag? - linuxthefish - 14.06.2011

Quote:
Originally Posted by Logitech90
View Post
Yes,i'm using it for registration/login/email system.

I try to use [128] cells instead of [256].
The only way you will find out is throughout testing. It all depends on what code you are running, and your server specs.


Re: This timers may cause lag? - Face9000 - 14.06.2011

I tested with 4 players and the server doesn't lag,but 4 players are too low to see if lags or not...