aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorUbitUmarov2019-04-10 14:01:10 +0100
committerUbitUmarov2019-04-10 14:01:10 +0100
commit4475b3db2774073d1ab430bc8aa33b310f5fff2e (patch)
treedeb3afee51ae529bb078423ae2e4baa6fc884f3f /OpenSim/Region/ClientStack
parentmissing file (diff)
downloadopensim-SC-4475b3db2774073d1ab430bc8aa33b310f5fff2e.zip
opensim-SC-4475b3db2774073d1ab430bc8aa33b310f5fff2e.tar.gz
opensim-SC-4475b3db2774073d1ab430bc8aa33b310f5fff2e.tar.bz2
opensim-SC-4475b3db2774073d1ab430bc8aa33b310f5fff2e.tar.xz
degradate udp network efficiency a even more
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 7dfcc7a..988f547 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -1672,7 +1672,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1672 { 1672 {
1673 s = 2 * i; 1673 s = 2 * i;
1674 OpenSimTerrainCompressor.CreatePatchFromTerrainData(bitpack, terrData, map[s], map[s + 1]); 1674 OpenSimTerrainCompressor.CreatePatchFromTerrainData(bitpack, terrData, map[s], map[s + 1]);
1675 if (bitpack.BytePos > 950 && i != numberPatchs - 1) 1675 if (bitpack.BytePos > 900 && i != numberPatchs - 1)
1676 { 1676 {
1677 //finish this packet 1677 //finish this packet
1678 bitpack.PackBitsFromByte(END_OF_PATCHES); 1678 bitpack.PackBitsFromByte(END_OF_PATCHES);
@@ -5100,7 +5100,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5100 5100
5101 if(objectUpdates != null) 5101 if(objectUpdates != null)
5102 { 5102 {
5103 int blocks = objectUpdates.Count;
5104 List<EntityUpdate> tau = new List<EntityUpdate>(30); 5103 List<EntityUpdate> tau = new List<EntityUpdate>(30);
5105 5104
5106 UDPPacketBuffer buf = m_udpServer.GetNewUDPBuffer(m_udpClient.RemoteEndPoint); 5105 UDPPacketBuffer buf = m_udpServer.GetNewUDPBuffer(m_udpClient.RemoteEndPoint);
@@ -5141,13 +5140,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5141 } 5140 }
5142 CreatePrimUpdateBlock(part, mysp, zc); 5141 CreatePrimUpdateBlock(part, mysp, zc);
5143 } 5142 }
5144 if (zc.Position < LLUDPServer.MAXPAYLOAD - 200) 5143 if (zc.Position < LLUDPServer.MAXPAYLOAD - 300)
5145 { 5144 {
5146 tau.Add(eu); 5145 tau.Add(eu);
5147 ++count; 5146 ++count;
5148 --blocks;
5149 } 5147 }
5150 else if (blocks > 0) 5148 else
5151 { 5149 {
5152 // we need more packets 5150 // we need more packets
5153 UDPPacketBuffer newbuf = m_udpServer.GetNewUDPBuffer(m_udpClient.RemoteEndPoint); 5151 UDPPacketBuffer newbuf = m_udpServer.GetNewUDPBuffer(m_udpClient.RemoteEndPoint);
@@ -5179,7 +5177,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5179 tau = new List<EntityUpdate>(30); 5177 tau = new List<EntityUpdate>(30);
5180 tau.Add(eu); 5178 tau.Add(eu);
5181 count = 1; 5179 count = 1;
5182 --blocks;
5183 } 5180 }
5184 } 5181 }
5185 5182