aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs32
1 files changed, 5 insertions, 27 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 17e4400..276b367 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -4632,28 +4632,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4632 4632
4633 void HandleQueueEmpty(ThrottleOutPacketTypeFlags categories) 4633 void HandleQueueEmpty(ThrottleOutPacketTypeFlags categories)
4634 { 4634 {
4635// if (!m_udpServer.IsRunningOutbound)
4636// return;
4637
4638 if ((categories & ThrottleOutPacketTypeFlags.Task) != 0) 4635 if ((categories & ThrottleOutPacketTypeFlags.Task) != 0)
4639 { 4636 {
4640// if (!m_udpServer.IsRunningOutbound)
4641// return;
4642/*
4643 if (m_maxUpdates == 0 || m_LastQueueFill == 0)
4644 {
4645 m_maxUpdates = m_udpServer.PrimUpdatesPerCallback;
4646 }
4647 else
4648 {
4649 if (Util.EnvironmentTickCountSubtract(m_LastQueueFill) < 200)
4650 m_maxUpdates += 5;
4651 else
4652 m_maxUpdates = m_maxUpdates >> 1;
4653 }
4654 m_maxUpdates = Util.Clamp<Int32>(m_maxUpdates,10,500);
4655 m_LastQueueFill = Util.EnvironmentTickCount();
4656*/
4657 int maxUpdateBytes = m_udpClient.GetCatBytesCanSend(ThrottleOutPacketType.Task, 30); 4637 int maxUpdateBytes = m_udpClient.GetCatBytesCanSend(ThrottleOutPacketType.Task, 30);
4658 4638
4659 if (m_entityUpdates.Count > 0) 4639 if (m_entityUpdates.Count > 0)
@@ -4669,23 +4649,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4669 4649
4670 internal bool HandleHasUpdates(ThrottleOutPacketTypeFlags categories) 4650 internal bool HandleHasUpdates(ThrottleOutPacketTypeFlags categories)
4671 { 4651 {
4672 bool hasUpdates = false;
4673
4674 if ((categories & ThrottleOutPacketTypeFlags.Task) != 0) 4652 if ((categories & ThrottleOutPacketTypeFlags.Task) != 0)
4675 { 4653 {
4676 if (m_entityUpdates.Count > 0) 4654 if (m_entityUpdates.Count > 0)
4677 hasUpdates = true; 4655 return true;
4678 else if (m_entityProps.Count > 0) 4656 if (m_entityProps.Count > 0)
4679 hasUpdates = true; 4657 return true;
4680 } 4658 }
4681 4659
4682 if ((categories & ThrottleOutPacketTypeFlags.Texture) != 0) 4660 if ((categories & ThrottleOutPacketTypeFlags.Texture) != 0)
4683 { 4661 {
4684 if (ImageManager.HasUpdates()) 4662 if (ImageManager.HasUpdates())
4685 hasUpdates = true; 4663 return true;
4686 } 4664 }
4687 4665
4688 return hasUpdates; 4666 return false;
4689 } 4667 }
4690 4668
4691 public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, UUID AssetFullID) 4669 public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, UUID AssetFullID)