10.03.2014, 13:19
Hello, I need advices.
My script is huge and when many players gather in one place the server starts lagging - I mean the things start to slow down, the commands and messages are delaying for few seconds and also sometimes the players are bugged, because of the lag and they need to relog. Мy script is bursting with a lot of things and I need tips on how to lighten to no lag.
I'm also using a lot ot permanent timers in OnGameModeInit. I'm using foreach in stead of for(new i = 0; i < MAX_PLAYERS; i++)
I tried to split the script into several includes, but did not help.
If you have a good advices for making a huge script without a lag, please tell me.
Sorry for my bad English.
My script is huge and when many players gather in one place the server starts lagging - I mean the things start to slow down, the commands and messages are delaying for few seconds and also sometimes the players are bugged, because of the lag and they need to relog. Мy script is bursting with a lot of things and I need tips on how to lighten to no lag.
I'm also using a lot ot permanent timers in OnGameModeInit. I'm using foreach in stead of for(new i = 0; i < MAX_PLAYERS; i++)
I tried to split the script into several includes, but did not help.
If you have a good advices for making a huge script without a lag, please tell me.
Sorry for my bad English.