lag due to too many variable resets?
#1

hi,

im just curious if there would be lag possible if i have to reset, lets say about 200 variables to 0 under OnPlayerConnect?
Im refering to [MAX_PLAYERS] variables here. (Cause it had to be performed everytime a player connects)
Lets say the server has a max. capacity of 100 player slots.

Or am i just out of mind?

thx in advance


example:

pawn Код:
new variable[MAX_PLAYERS];

//OnPlayerConnect
variable[playerid]=0;
Reply
#2

Not really.

Remember to re-define MAX_PLAYERS. By default it's 500, which is way too much if you have just 100 slots.
Reply
#3

ive already redefined MAX_PLAYERS
So there would be no reason to care about lag at this place?

thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)