From 2752a3525c6c57470024d0dddfd69d593abc4594 Mon Sep 17 00:00:00 2001
From: John Hurliman
Date: Wed, 21 Oct 2009 15:22:23 -0700
Subject: * Changed the timing calculations for sending resends/acks/pings from
per-client back to per-scene * Testing a fix from Jim to make the cpu usage
fix cleaner
---
OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
(limited to 'OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs')
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs
index de67ca7..0a090b4 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs
@@ -103,14 +103,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public bool IsPaused;
/// Environment.TickCount when the last packet was received for this client
public int TickLastPacketReceived;
- /// Environment.TickCount of the last time the outgoing packet handler executed for this client
- public int TickLastOutgoingPacketHandler;
- /// Keeps track of the number of elapsed milliseconds since the last time the outgoing packet handler executed for this client
- public int ElapsedMSOutgoingPacketHandler;
- /// Keeps track of the number of 100 millisecond periods elapsed in the outgoing packet handler executed for this client
- public int Elapsed100MSOutgoingPacketHandler;
- /// Keeps track of the number of 500 millisecond periods elapsed in the outgoing packet handler executed for this client
- public int Elapsed500MSOutgoingPacketHandler;
/// Smoothed round-trip time. A smoothed average of the round-trip time for sending a
/// reliable packet to the client and receiving an ACK
@@ -191,9 +183,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// Initialize this to a sane value to prevent early disconnects
TickLastPacketReceived = Environment.TickCount & Int32.MaxValue;
- ElapsedMSOutgoingPacketHandler = 0;
- Elapsed100MSOutgoingPacketHandler = 0;
- Elapsed500MSOutgoingPacketHandler = 0;
}
///
@@ -553,7 +542,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
// HACK: Try spending some extra time here to slow down OnQueueEmpty calls
- System.Threading.Thread.Sleep(100);
+ //System.Threading.Thread.Sleep(100);
m_onQueueEmptyRunning[i] = false;
}
--
cgit v1.1