mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
slow down terrain sending so other users of LAND queue do have a chance to send things
This commit is contained in:
@@ -1210,7 +1210,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
public virtual bool CanSendLayerData()
|
||||
{
|
||||
int n = m_udpClient.GetPacketsQueuedCount(ThrottleOutPacketType.Land);
|
||||
if ( n > 256)
|
||||
if ( n > 20)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1102,7 +1102,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain
|
||||
{
|
||||
pups.SetByPatch(x, y, false);
|
||||
patchs.Add(new PatchesToSend(x, y, 0));
|
||||
if (++npatchs >= 512)
|
||||
if (++npatchs >= 128)
|
||||
{
|
||||
pups.sendAllcurrentX = x + 1;
|
||||
pups.sendAllcurrentY = y;
|
||||
@@ -1110,7 +1110,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain
|
||||
}
|
||||
}
|
||||
}
|
||||
if (npatchs >= 512)
|
||||
if (npatchs >= 128)
|
||||
break;
|
||||
x = 0;
|
||||
}
|
||||
@@ -1221,7 +1221,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain
|
||||
{
|
||||
pups.SetByPatch(x, y, false);
|
||||
ret.Add(new PatchesToSend(x, y, (float)distsq));
|
||||
if (npatchs++ > 1024)
|
||||
if (npatchs++ > 512)
|
||||
{
|
||||
y = endY;
|
||||
x = endX;
|
||||
|
||||
Reference in New Issue
Block a user