From cfc4055991076e234e2c286440bba189147af048 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Tue, 16 Sep 2014 18:27:08 +0100 Subject: 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. --- OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs') 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 private void IncomingPacketHandler() { + Thread.CurrentThread.Priority = ThreadPriority.Highest; + // Set this culture for the thread that incoming packets are received // on to en-US to avoid number parsing issues Culture.SetCurrentCulture(); @@ -2228,6 +2230,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP private void OutgoingPacketHandler() { + Thread.CurrentThread.Priority = ThreadPriority.Highest; + // Set this culture for the thread that outgoing packets are sent // on to en-US to avoid number parsing issues Culture.SetCurrentCulture(); -- cgit v1.1