aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-09-16 18:27:08 +0100
committerJustin Clark-Casey (justincc)2014-11-25 23:18:38 +0000
commitcfc4055991076e234e2c286440bba189147af048 (patch)
tree452d12045703f6cf7c1b84d6d3df39f042371204 /OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
parentSet ThreadPriority on main scene thread to highest. (diff)
downloadopensim-SC_OLD-cfc4055991076e234e2c286440bba189147af048.zip
opensim-SC_OLD-cfc4055991076e234e2c286440bba189147af048.tar.gz
opensim-SC_OLD-cfc4055991076e234e2c286440bba189147af048.tar.bz2
opensim-SC_OLD-cfc4055991076e234e2c286440bba189147af048.tar.xz
Make outboudn and packet inbox handling threads highest priority.
Will only have any affect under Windows or mono with a patch such as https://gist.github.com/justincc/31e52218d098529b4696 (not recommended) applied. For assessment purposes.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
index 9757d35..6e31322 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
@@ -2183,6 +2183,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
2183 2183
2184 private void IncomingPacketHandler() 2184 private void IncomingPacketHandler()
2185 { 2185 {
2186 Thread.CurrentThread.Priority = ThreadPriority.Highest;
2187
2186 // Set this culture for the thread that incoming packets are received 2188 // Set this culture for the thread that incoming packets are received
2187 // on to en-US to avoid number parsing issues 2189 // on to en-US to avoid number parsing issues
2188 Culture.SetCurrentCulture(); 2190 Culture.SetCurrentCulture();
@@ -2228,6 +2230,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
2228 2230
2229 private void OutgoingPacketHandler() 2231 private void OutgoingPacketHandler()
2230 { 2232 {
2233 Thread.CurrentThread.Priority = ThreadPriority.Highest;
2234
2231 // Set this culture for the thread that outgoing packets are sent 2235 // Set this culture for the thread that outgoing packets are sent
2232 // on to en-US to avoid number parsing issues 2236 // on to en-US to avoid number parsing issues
2233 Culture.SetCurrentCulture(); 2237 Culture.SetCurrentCulture();