Posts: 447
Threads: 105
Joined: Feb 2013
Hi,
Iv server with 150 players , there are no lags , but its start lag when u be in place which have many players about 5 players or much its keep lag , if u goto another place which there are no people server not lag , what is that reason?
Posts: 417
Threads: 71
Joined: Dec 2013
Reputation:
0
Maybe there's too many vehicle, mapping or something like that no ?
Posts: 447
Threads: 105
Joined: Feb 2013
Posts: 447
Threads: 105
Joined: Feb 2013
Quote:
Originally Posted by (*|Flake|*)
Did you even read the last response? That would probably be the cause of it, if not is there any strange messages/warnings in your server_log, something could be wrong with in there.
|
Which last response , also there are no any kind of warnings ,you know server start lagging only when you get close with densely people.
Posts: 1,690
Threads: 18
Joined: Jul 2012
Reputation:
0
Is that server lag or client sided lag?
Server lag will be for everyone, Chat goes slow, Commands reacts after 2-4 seconds etc. (HIGH PINGS)
Client sided mostly occours due to high texttures, Trees, Shadows etc, So when more people gather, Our screen is laggy.
Most of the times, Warnings in server logs or errors check for that too.
Posts: 438
Threads: 54
Joined: Mar 2013
sometime im lagged if i played to many player on the server
Posts: 447
Threads: 105
Joined: Feb 2013
Quote:
Originally Posted by Neonman
Maybe because there are many maps (objects) in that place?
|
yes there are , im using "CreateDynamicObject" , but other servers also using that , im usng onplayerupdate
Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,15.0,382.4741,2548.9509,20.1041))SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.2, 0.2, 0.2);
if(IsPlayerInRangeOfPoint(playerid,15.0,-1185.4705,27.1411,17.6159))SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.2, 0.2, 0.2);
}
new InfoString[512];
if(IsPlayerNPC(playerid)) return 0;
format(InfoString, sizeof(InfoString), "Kills: ~w~~W~%d~N~~r~Deaths: ~W~%d~N~~P~Ratio:~W~ %0.2f~N~~Y~Score: ~W~%d", pInfo[playerid][Kills],pInfo[playerid][Deaths],Float:pInfo[playerid][Kills]/Float:pInfo[playerid][Deaths],GetPlayerScore(playerid));
TextDrawSetString(PPing[playerid], InfoString);
#if PauseDetectSystem == true
pTick[playerid] = GetTickCount();
#endif
#if MoveSystem == true
if(pInfo[playerid][Move] == 1)
GetPlayerHoldingKey(playerid);
#endif
return 1;
}
Does that lags for 150 players?