diff options
author | Justin Clark-Casey (justincc) | 2014-09-16 18:27:08 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-11-25 23:18:38 +0000 |
commit | cfc4055991076e234e2c286440bba189147af048 (patch) | |
tree | 452d12045703f6cf7c1b84d6d3df39f042371204 /OpenSim/Region/ClientStack/Linden | |
parent | Set ThreadPriority on main scene thread to highest. (diff) | |
download | opensim-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')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/OutgoingQueueRefillEngine.cs | 2 |
2 files changed, 6 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(); |
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OutgoingQueueRefillEngine.cs b/OpenSim/Region/ClientStack/Linden/UDP/OutgoingQueueRefillEngine.cs index 069c9c8..2ec1733 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/OutgoingQueueRefillEngine.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/OutgoingQueueRefillEngine.cs | |||
@@ -217,6 +217,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
217 | 217 | ||
218 | private void ProcessRequests() | 218 | private void ProcessRequests() |
219 | { | 219 | { |
220 | Thread.CurrentThread.Priority = ThreadPriority.Highest; | ||
221 | |||
220 | try | 222 | try |
221 | { | 223 | { |
222 | while (IsRunning || m_requestQueue.Count > 0) | 224 | while (IsRunning || m_requestQueue.Count > 0) |