Change priority of output threads

This commit is contained in:
Travis Nickles 2019-01-09 04:24:29 -06:00
parent cceaa31404
commit bc9a7c3e65

View File

@ -529,7 +529,7 @@ namespace DS4Windows
if (conType == ConnectionType.BT) if (conType == ConnectionType.BT)
{ {
ds4Output = new Thread(performDs4Output); ds4Output = new Thread(performDs4Output);
ds4Output.Priority = ThreadPriority.AboveNormal; ds4Output.Priority = ThreadPriority.Normal;
ds4Output.Name = "DS4 Output thread: " + Mac; ds4Output.Name = "DS4 Output thread: " + Mac;
ds4Output.IsBackground = true; ds4Output.IsBackground = true;
ds4Output.Start(); ds4Output.Start();
@ -543,7 +543,7 @@ namespace DS4Windows
else else
{ {
ds4Output = new Thread(OutReportCopy); ds4Output = new Thread(OutReportCopy);
ds4Output.Priority = ThreadPriority.AboveNormal; ds4Output.Priority = ThreadPriority.Normal;
ds4Output.Name = "DS4 Arr Copy thread: " + Mac; ds4Output.Name = "DS4 Arr Copy thread: " + Mac;
ds4Output.IsBackground = true; ds4Output.IsBackground = true;
ds4Output.Start(); ds4Output.Start();