From b8a061816ff15bd6d021e4936ee4332877d557b4 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 9 Apr 2019 12:46:21 +0100 Subject: [PATCH] degradate udp network efficiency a bit --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 9e0c783707..670d61feb2 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -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(30); - tau.Add(eu); + //tau.Add(eu); count = 1; } }