SA-MP Forums Archive
Server's Laggyness. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server's Laggyness. (/showthread.php?tid=250915)



Server's Laggyness. - Tee - 25.04.2011

I just want to know what in a script can cause a server to be laggy. Because sometimes my Deathmatch server lags and the RP server don't. The host is the same for bother. I used enums where I can to save data. I don't use too much array space like new string[129]; (Since max characters in sa-mp is 12. When I restart the server it is ok then after some time it gets laggy. Other members complain about it also.

I don't think it is the script be cause the .pwn file is 222KB and the .amx is 150KB.
Thanks in Advance.


Re: Server's Laggyness. - Mr187 - 25.04.2011

Mainly timers.


Re: Server's Laggyness. - sciman001 - 25.04.2011

Timers, and at times, for loops... sometimes...


Re: Server's Laggyness. - Tee - 25.04.2011

I have 30+ timers on my RP server and 21 on the DM server and the RP is faster and smoother than the DM.


Re: Server's Laggyness. - Mr187 - 25.04.2011

Quote:
Originally Posted by Tee
Посмотреть сообщение
I have 30+ timers on my RP server and 21 on the DM server and the RP is faster and smoother than the DM.
Doesn't mean nothing I could have 1000 timers on a gamemode but if I have only 1 on another gamemode that is being used every second it can cause some major ass lag. For example saving user accounts every second.