From 18a744cac10c797b67236988a84ab6d13a5543b8 Mon Sep 17 00:00:00 2001 From: Melanie Date: Fri, 2 Oct 2009 04:04:14 +0100 Subject: Change texture sending to be driven by the queue empty event from the packet queue, rather than a timer --- OpenSim/Region/ClientStack/LindenUDP/LLImageManager.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLImageManager.cs') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLImageManager.cs b/OpenSim/Region/ClientStack/LindenUDP/LLImageManager.cs index 70af8e8..1556d01 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLImageManager.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLImageManager.cs @@ -65,6 +65,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP m_j2kDecodeModule = pJ2kDecodeModule; } + public LLClientView Client + { + get { return m_client; } + } + public void EnqueueReq(TextureRequestArgs newRequest) { //newRequest is the properties of our new texture fetch request. @@ -207,8 +212,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP threshold = 10; //Uncomment this to see what the texture stack is doing - //m_log.Debug("Queue: " + m_client.PacketHandler.PacketQueue.TextureOutgoingPacketQueueCount.ToString() + " Threshold: " + threshold.ToString() + " outstanding: " + m_outstandingtextures.ToString()); - if (m_client.PacketHandler.PacketQueue.TextureOutgoingPacketQueueCount < threshold) + //m_log.Debug("Queue: " + m_client.PacketHandler.PacketQueue.getQueueCount(ThrottleOutPacketType.Texture).ToString() + " Threshold: " + threshold.ToString() + " outstanding: " + m_outstandingtextures.ToString()); + if (m_client.PacketHandler.PacketQueue.GetQueueCount(ThrottleOutPacketType.Texture) < threshold) { while (m_priorityQueue.Count > 0) { -- cgit v1.1