Does Defining MAX_PLAYERS low lag?
#1

Well while testing the GM i am making, i see the chat and all lags a bit. Might it be caused becayse i have many functions searching on MAX_PLAYERS and i don't have it defined to a max?

Or could it be the timers?

Every timers i have are:

pawn Код:
new TIMER_pOnlineTime[MAX_PLAYERS];
new TIMER_Fuel[MAX_PLAYERS];
new TIMER_KM[MAX_PLAYERS];
new TIMER_Oil[MAX_PLAYERS];
new TIMER_Pneus[MAX_PLAYERS];
new TIMER_UpdateCar[MAX_PLAYERS];
new TIMER_UnJail[MAX_PLAYERS];

Under OnPlayerStateChange i have this, after checking if player is inside a vehicle..

TIMER_Fuel[playerid] = SetTimerEx("CFuel", 60000, true, "i", playerid);
TIMER_KM[playerid] = SetTimerEx("CKM", 30000, true, "i", playerid);
TIMER_Oil[playerid] = SetTimerEx("COil", 30000, true, "i", playerid);
TIMER_Pneus[playerid] = SetTimerEx("CPneus", 30000, true, "i", playerid);
TIMER_UpdateCar[playerid] = SetTimerEx("UpdateCar", 500, true, "i", playerid);
Than i have some 15 or 20 functions searching on MAX_PLAYERS but are rarely called.. It's like /ask to send messages to admins, and these things.

If it was an hosted server with lot of players it would be a reason to lag, but, test server where the max that join is me and my friend when i need to test things with 2 people, it turns weird for me.
Reply


Messages In This Thread
Does Defining MAX_PLAYERS low lag? - by ricardo178 - 06.06.2012, 15:41
AW: Does Defining MAX_PLAYERS low lag? - by Extremo - 06.06.2012, 15:45
Re: Does Defining MAX_PLAYERS low lag? - by ricardo178 - 06.06.2012, 15:47
AW: Does Defining MAX_PLAYERS low lag? - by Extremo - 06.06.2012, 15:49
Re: Does Defining MAX_PLAYERS low lag? - by MadeMan - 06.06.2012, 15:53
Re: Does Defining MAX_PLAYERS low lag? - by ricardo178 - 06.06.2012, 16:12
AW: Does Defining MAX_PLAYERS low lag? - by Extremo - 06.06.2012, 16:16
Re: Does Defining MAX_PLAYERS low lag? - by ricardo178 - 06.06.2012, 16:21
Re: Does Defining MAX_PLAYERS low lag? - by milanosie - 06.06.2012, 16:40
Re: Does Defining MAX_PLAYERS low lag? - by Jonny5 - 06.06.2012, 16:44

Forum Jump:


Users browsing this thread: 2 Guest(s)