Server's Laggyness.
#1

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.
Reply
#2

Mainly timers.
Reply
#3

Timers, and at times, for loops... sometimes...
Reply
#4

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)