Use Highest thread priority

It does improve input lag slightly with
no real impact on CPU usage
This commit is contained in:
Travis Nickles 2017-03-20 15:17:43 -07:00
parent 6a3e9ff913
commit 0dd442f813

View File

@ -242,11 +242,11 @@ namespace DS4Windows
Console.WriteLine(MacAddress.ToString() + " " + System.DateTime.UtcNow.ToString("o") + "> start");
sendOutputReport(true); // initialize the output report
ds4Output = new Thread(performDs4Output);
ds4Output.Priority = ThreadPriority.AboveNormal;
ds4Output.Priority = ThreadPriority.Highest;
ds4Output.Name = "DS4 Output thread: " + Mac;
ds4Output.Start();
ds4Input = new Thread(performDs4Input);
ds4Input.Priority = ThreadPriority.AboveNormal;
ds4Input.Priority = ThreadPriority.Highest;
ds4Input.Name = "DS4 Input thread: " + Mac;
ds4Input.Start();
}