aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-08-01 18:11:50 +0100
committerJustin Clark-Casey (justincc)2013-08-01 18:11:50 +0100
commit932c382737d155176bd7e0dcfaf9395d997a88fb (patch)
tree0831b8bb2895fddbddffd133017885c2dc36df86 /OpenSim/Region/ClientStack/Linden
parentIssue: painfully slow terrain loading. The cause is commit d9d995914c5fba00d4... (diff)
downloadopensim-SC_OLD-932c382737d155176bd7e0dcfaf9395d997a88fb.zip
opensim-SC_OLD-932c382737d155176bd7e0dcfaf9395d997a88fb.tar.gz
opensim-SC_OLD-932c382737d155176bd7e0dcfaf9395d997a88fb.tar.bz2
opensim-SC_OLD-932c382737d155176bd7e0dcfaf9395d997a88fb.tar.xz
Revert "Issue: painfully slow terrain loading. The cause is commit d9d995914c5fba00d4ccaf66b899384c8ea3d5eb (r/23185) -- the WaitOne on the UDPServer. Putting it back to how it was done solves the issue. But this may impact CPU usage, so I'm pushing it to test if it does."
This reverts commit 59b461ac0eaae1cc34bb82431106fdf0476037f3.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
index 942c044..85fe1a4 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
@@ -246,7 +246,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
246 /// This allows the outbound loop to only operate when there is data to send rather than continuously polling. 246 /// This allows the outbound loop to only operate when there is data to send rather than continuously polling.
247 /// Some data is sent immediately and not queued. That data would not trigger this event. 247 /// Some data is sent immediately and not queued. That data would not trigger this event.
248 /// </remarks> 248 /// </remarks>
249 //private AutoResetEvent m_dataPresentEvent = new AutoResetEvent(false); 249 private AutoResetEvent m_dataPresentEvent = new AutoResetEvent(false);
250 250
251 private Pool<IncomingPacket> m_incomingPacketPool; 251 private Pool<IncomingPacket> m_incomingPacketPool;
252 252
@@ -907,7 +907,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
907 907
908 PacketPool.Instance.ReturnPacket(packet); 908 PacketPool.Instance.ReturnPacket(packet);
909 909
910 //m_dataPresentEvent.Set(); 910 m_dataPresentEvent.Set();
911 } 911 }
912 912
913 /// <summary> 913 /// <summary>
@@ -1919,12 +1919,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1919 1919
1920 // If nothing was sent, sleep for the minimum amount of time before a 1920 // If nothing was sent, sleep for the minimum amount of time before a
1921 // token bucket could get more tokens 1921 // token bucket could get more tokens
1922 if (!m_packetSent) 1922 //if (!m_packetSent)
1923 Thread.Sleep((int)TickCountResolution); 1923 // Thread.Sleep((int)TickCountResolution);
1924 // 1924 //
1925 // Instead, now wait for data present to be explicitly signalled. Evidence so far is that with 1925 // Instead, now wait for data present to be explicitly signalled. Evidence so far is that with
1926 // modern mono it reduces CPU base load since there is no more continuous polling. 1926 // modern mono it reduces CPU base load since there is no more continuous polling.
1927 //m_dataPresentEvent.WaitOne(100); 1927 m_dataPresentEvent.WaitOne(100);
1928 1928
1929 Watchdog.UpdateThread(); 1929 Watchdog.UpdateThread();
1930 } 1930 }