Way to much server lags - 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: Way to much server lags (
/showthread.php?tid=186059)
Way to much server lags -
Jochemd - 27.10.2010
Hello,
Since a few days I got very much server lags on my project gamemode. I think this is due there is 'new string[128]' (always 128 ) everywhere. I think this causes the lag. I was not sure if it was my project gamemode or just my internet homehost. So I loaded an almost empty gamemode and there was no lags. Probably I got to high string values in the gamemode. Is there a way to decrease the lags without changing them lower? I need them this high.
Regards, Jochem
Re: Way to much server lags -
iJumbo - 27.10.2010
do you use some scripts in OnPlayerUpdate ? becouse they can cause some lag
Re: Way to much server lags -
Jochemd - 27.10.2010
No. But this is not something about 'some lag'. I got a huge server lag. I guess it's possible due to much timers? I got pretty much timers, and they're all needed to.
Re: Way to much server lags -
iJumbo - 27.10.2010
the timers what millisec have becouse if its some with low millisec can cause lag
Re: Way to much server lags -
Code_Red - 27.10.2010
go to your a_samp include and lower MAX_PLAYERS to the amount of max players you got , might help!
Re: Way to much server lags -
Jochemd - 27.10.2010
My timers time variate from 300 to 60000.. I don't know if that would be the problem
@ Code _Red I try it now
EDIT: It still makes much lag.
Re: Way to much server lags -
Code_Red - 27.10.2010
well , using timers might also cause lags , try using as less timers as possible
Re: Way to much server lags -
iJumbo - 27.10.2010
Quote:
Originally Posted by Code_Red
go to your a_samp include and lower MAX_PLAYERS to the amount of max players you got , might help!
|
better to do in gm
#undef MAX_PLAYERS
#define MAX_PLAYERS playerslots
Re: Way to much server lags -
Jochemd - 27.10.2010
Quote:
Originally Posted by Code_Red
well , using timers might also cause lags , try using as less timers as possible
|
That would be years of work to make it as less timers as possible. Isn't there another way?
Re: Way to much server lags -
wups - 27.10.2010
Quote:
Originally Posted by gigi1223
better to do in gm
#undef MAX_PLAYERS
#define MAX_PLAYERS playerslots
|
What are you talking about?
Also check all the loops, cycles