Skip to content

Commit

Permalink
Set HidDevice _readThread Priority to Highest
Browse files Browse the repository at this point in the history
This will fix Steam Deck latency issue.
  • Loading branch information
Valkirie authored Dec 7, 2024
1 parent 32e011c commit fb07201
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hidapi.net/HidDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ public void BeginRead()
_reading = true;
_readThread = new Thread(new ThreadStart(ReadLoop))
{
IsBackground = true
IsBackground = true,
Priority = ThreadPriority.Highest
};
_readThread.Start();
}
Expand Down

0 comments on commit fb07201

Please sign in to comment.