degradate udp network efficiency a bit

0.9.1.0-post-fixes
UbitUmarov 2019-04-09 12:46:21 +01:00
parent f29fdb6bda
commit b8a061816f
1 changed files with 4 additions and 4 deletions

View File

@ -5059,7 +5059,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
if (istree) if (istree)
maxUpdatesBytes -= 64; maxUpdatesBytes -= 64;
else else
maxUpdatesBytes -= 100; // crude estimation maxUpdatesBytes -= 120; // crude estimation
if (compressedUpdates == null) if (compressedUpdates == null)
{ {
@ -5277,9 +5277,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
lastzc = zc.ZeroCount; lastzc = zc.ZeroCount;
CreateCompressedUpdateBlockZC(sop, mysp, zc); CreateCompressedUpdateBlockZC(sop, mysp, zc);
if (zc.Position < LLUDPServer.MAXPAYLOAD) if (zc.Position < LLUDPServer.MAXPAYLOAD - 200)
{ {
tau.Add(eu); //tau.Add(eu);
++count; ++count;
} }
else else
@ -5312,7 +5312,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// im lazy now, just do last again // im lazy now, just do last again
CreateCompressedUpdateBlockZC(sop, mysp, zc); CreateCompressedUpdateBlockZC(sop, mysp, zc);
tau = new List<EntityUpdate>(30); tau = new List<EntityUpdate>(30);
tau.Add(eu); //tau.Add(eu);
count = 1; count = 1;
} }
} }