Way to much server lags
#1

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

do you use some scripts in OnPlayerUpdate ? becouse they can cause some lag
Reply
#3

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

the timers what millisec have becouse if its some with low millisec can cause lag
Reply
#5

go to your a_samp include and lower MAX_PLAYERS to the amount of max players you got , might help!
Reply
#6

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

well , using timers might also cause lags , try using as less timers as possible
Reply
#8

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
Reply
#9

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?
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)