mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
degradate udp network efficiency a bit
This commit is contained in:
@@ -5059,7 +5059,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
if (istree)
|
||||
maxUpdatesBytes -= 64;
|
||||
else
|
||||
maxUpdatesBytes -= 100; // crude estimation
|
||||
maxUpdatesBytes -= 120; // crude estimation
|
||||
|
||||
if (compressedUpdates == null)
|
||||
{
|
||||
@@ -5277,9 +5277,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
lastzc = zc.ZeroCount;
|
||||
|
||||
CreateCompressedUpdateBlockZC(sop, mysp, zc);
|
||||
if (zc.Position < LLUDPServer.MAXPAYLOAD)
|
||||
if (zc.Position < LLUDPServer.MAXPAYLOAD - 200)
|
||||
{
|
||||
tau.Add(eu);
|
||||
//tau.Add(eu);
|
||||
++count;
|
||||
}
|
||||
else
|
||||
@@ -5312,7 +5312,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
// im lazy now, just do last again
|
||||
CreateCompressedUpdateBlockZC(sop, mysp, zc);
|
||||
tau = new List<EntityUpdate>(30);
|
||||
tau.Add(eu);
|
||||
//tau.Add(eu);
|
||||
count = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user