From 2b00244c629fd53820672c5c7d9a98f4b405bc3e Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sun, 19 Mar 2017 07:09:57 -0700 Subject: [PATCH] Raise thread priority. Using AboveNormal priority for now. Test Highest priority at some point. --- DS4Windows/DS4Library/DS4Device.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DS4Windows/DS4Library/DS4Device.cs b/DS4Windows/DS4Library/DS4Device.cs index 2a18351..0a34dec 100644 --- a/DS4Windows/DS4Library/DS4Device.cs +++ b/DS4Windows/DS4Library/DS4Device.cs @@ -242,9 +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.Name = "DS4 Output thread: " + Mac; ds4Output.Start(); ds4Input = new Thread(performDs4Input); + ds4Input.Priority = ThreadPriority.AboveNormal; ds4Input.Name = "DS4 Input thread: " + Mac; ds4Input.Start(); }