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.ghosts
parent
5991a98d80
commit
e6df61fbe9
|
@ -2055,6 +2055,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
private void IncomingPacketHandler()
|
private void IncomingPacketHandler()
|
||||||
{
|
{
|
||||||
|
Thread.CurrentThread.Priority = ThreadPriority.Highest;
|
||||||
|
|
||||||
// Set this culture for the thread that incoming packets are received
|
// Set this culture for the thread that incoming packets are received
|
||||||
// on to en-US to avoid number parsing issues
|
// on to en-US to avoid number parsing issues
|
||||||
Culture.SetCurrentCulture();
|
Culture.SetCurrentCulture();
|
||||||
|
@ -2100,6 +2102,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
private void OutgoingPacketHandler()
|
private void OutgoingPacketHandler()
|
||||||
{
|
{
|
||||||
|
Thread.CurrentThread.Priority = ThreadPriority.Highest;
|
||||||
|
|
||||||
// Set this culture for the thread that outgoing packets are sent
|
// Set this culture for the thread that outgoing packets are sent
|
||||||
// on to en-US to avoid number parsing issues
|
// on to en-US to avoid number parsing issues
|
||||||
Culture.SetCurrentCulture();
|
Culture.SetCurrentCulture();
|
||||||
|
|
|
@ -217,6 +217,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
private void ProcessRequests()
|
private void ProcessRequests()
|
||||||
{
|
{
|
||||||
|
Thread.CurrentThread.Priority = ThreadPriority.Highest;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
while (IsRunning || m_requestQueue.Count > 0)
|
while (IsRunning || m_requestQueue.Count > 0)
|
||||||
|
|
Loading…
Reference in New Issue