High playerid, High lag. -
zzz2009 - 15.11.2014
If my playerid is low id, I have no lag. But If my playerid is high id, I take a lot of lag.
(Ex. 100 players connected my server. If my playerid is 0~30, I have no lag. But If my playerid is 50~100, I take a lot of lag.)
Is this problem by SAMP internally?
Re: High playerid, High lag. -
Skully82 - 15.11.2014
It may be the server's Cpu temp is high
try restarting the server every 1-2 days
Re: High playerid, High lag. -
zzz2009 - 15.11.2014
Quote:
Originally Posted by Skully82
It may be the server's Cpu temp is high
try restarting the server every 1-2 days
|
No, I open the server early But If connect many players, have server lag too.
Re: High playerid, High lag. -
RedFusion - 15.11.2014
Most likely due to the script that the server is running, i'm just guessing though.
Re: High playerid, High lag. -
Vince123 - 15.11.2014
Happens to me even! Help me please.
Re: High playerid, High lag. -
zzz2009 - 16.11.2014
Quote:
Originally Posted by RedFusion
Most likely due to the script that the server is running, i'm just guessing though.
|
No, Some host does not lag. But mostly have lag at the same script.
Re: High playerid, High lag. -
Schneider - 16.11.2014
Yeah, it's problably caused by the servers script. Many scripts use loops to do something to each player, it usually starts with playerid '0', then '1' then '2', etc. For every player the server has to execute the whole code inside the loop. So if you have a low playerid, you won't experience much lag (at least, if the script is properly coded) and if you have a very high playerid you might experience lag.
Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
//do something
}
Re: High playerid, High lag. -
zzz2009 - 16.11.2014
Quote:
Originally Posted by Schneider
Yeah, it's problably caused by the servers script. Many scripts use loops to do something to each player, it usually starts with playerid '0', then '1' then '2', etc. For every player the server has to execute the whole code inside the loop. So if you have a low playerid, you won't experience much lag (at least, if the script is properly coded) and if you have a very high playerid you might experience lag.
Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
//do something
}
|
It's not a script problem. This lag issue is amplified When many players in a one place.
Re: High playerid, High lag. -
RedFusion - 16.11.2014
Quote:
Originally Posted by Schneider
Yeah, it's problably caused by the servers script. Many scripts use loops to do something to each player, it usually starts with playerid '0', then '1' then '2', etc. For every player the server has to execute the whole code inside the loop. So if you have a low playerid, you won't experience much lag (at least, if the script is properly coded) and if you have a very high playerid you might experience lag.
Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
//do something
}
|
This is kind of what i had in mind. I think your problem is related to this.
Re: High playerid, High lag. -
Mauzen - 16.11.2014
Could also be too much work in OnPlayerUpdate, as this (of course) is called moer often when there are more active players connected.
It certainly isnt a samp bug, but a script problem.
Re: High playerid, High lag. -
TakeiT - 18.11.2014
What are your host specs?
Re: High playerid, High lag. -
zzz2009 - 19.11.2014
Quote:
Originally Posted by TakeiT
What are your host specs?
|
i5-4670, 8GB RAM, 100mbps LAN
Re: High playerid, High lag. -
Khanz - 19.11.2014
Quote:
Originally Posted by zzz2009
i5-4670, 8GB RAM, 100mbps LAN
|
>Desktop CPU on a server.
Re: High playerid, High lag. -
zzz2009 - 19.11.2014
Quote:
Originally Posted by Khanz
>Desktop CPU on a server.
|
Sorry to my bad English. It's not mean "hosting". It means "Server Opener(?)"
Re: High playerid, High lag. -
zzz2009 - 19.11.2014
Quote:
Originally Posted by Mauzen
Could also be too much work in OnPlayerUpdate, as this (of course) is called moer often when there are more active players connected.
It certainly isnt a samp bug, but a script problem.
|
It's all.
Re: High playerid, High lag. -
zzz2009 - 19.11.2014
If this issue is showing for users, Bytes Received and Message Received speed is high at Network Stats(F5) more than low playerid from high playerid user.
And This issue is showing for if player have high playerid stand on many players place.