Skip to content

Commit f4efa60

Browse files
authored
fix: Improved performance on windows (#54) (#100)
In my testing, this have no negative impact on lost input anymore (after fix in 0.3.0). I haven't noticed any huge impact on performance in my tests, but may not be in a performance-limited scenario. But has neither noticed loss of input accuracy, so this feels like a safe change.
1 parent cbbb25d commit f4efa60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/gamepads_windows/windows/gamepad.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ void Gamepads::read_gamepad(GamepadData* gamepad, IGameInputDevice* device) {
236236
}
237237
}
238238

239-
Sleep(1);
239+
Sleep(8);
240240
}
241241

242242
if (gamepad->stop_thread) {

0 commit comments

Comments
 (0)