From fb07201312dba45effee4a866db841443d5dded2 Mon Sep 17 00:00:00 2001 From: Lesueur Benjamin Date: Sat, 7 Dec 2024 17:33:47 +0100 Subject: [PATCH] Set HidDevice _readThread Priority to Highest This will fix Steam Deck latency issue. --- hidapi.net/HidDevice.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hidapi.net/HidDevice.cs b/hidapi.net/HidDevice.cs index e3d9db31e..b64a63b27 100644 --- a/hidapi.net/HidDevice.cs +++ b/hidapi.net/HidDevice.cs @@ -161,7 +161,8 @@ public void BeginRead() _reading = true; _readThread = new Thread(new ThreadStart(ReadLoop)) { - IsBackground = true + IsBackground = true, + Priority = ThreadPriority.Highest }; _readThread.Start(); }