diff options
author | Justin Clark-Casey (justincc) | 2013-07-18 21:28:36 +0100 |
---|---|---|
committer | Diva Canto | 2013-07-21 08:56:48 -0700 |
commit | 63c42d66022ea7f1c2805b8f77980af5d4ba1fb4 (patch) | |
tree | 48bbe3212636cc81f525ba0d4c6ae56ad27b3551 /OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-63c42d66022ea7f1c2805b8f77980af5d4ba1fb4.zip opensim-SC_OLD-63c42d66022ea7f1c2805b8f77980af5d4ba1fb4.tar.gz opensim-SC_OLD-63c42d66022ea7f1c2805b8f77980af5d4ba1fb4.tar.bz2 opensim-SC_OLD-63c42d66022ea7f1c2805b8f77980af5d4ba1fb4.tar.xz |
Do some simple queue empty checks in the main outgoing udp loop instead of always performing these on a separate fired thread.
This appears to improve cpu usage since launching a new thread is more expensive than performing a small amount of inline logic.
However, needs testing at scale.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs index f143c32..512f60d 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs | |||
@@ -308,8 +308,8 @@ namespace OpenMetaverse | |||
308 | 308 | ||
309 | public void AsyncBeginSend(UDPPacketBuffer buf) | 309 | public void AsyncBeginSend(UDPPacketBuffer buf) |
310 | { | 310 | { |
311 | if (IsRunningOutbound) | 311 | // if (IsRunningOutbound) |
312 | { | 312 | // { |
313 | try | 313 | try |
314 | { | 314 | { |
315 | m_udpSocket.BeginSendTo( | 315 | m_udpSocket.BeginSendTo( |
@@ -323,7 +323,7 @@ namespace OpenMetaverse | |||
323 | } | 323 | } |
324 | catch (SocketException) { } | 324 | catch (SocketException) { } |
325 | catch (ObjectDisposedException) { } | 325 | catch (ObjectDisposedException) { } |
326 | } | 326 | // } |
327 | } | 327 | } |
328 | 328 | ||
329 | void AsyncEndSend(IAsyncResult result) | 329 | void AsyncEndSend(IAsyncResult result) |