Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved timing accuracy of SDL_WaitEventTimeout() on Windows
We don't need to use the hack of setting a timer and waiting for a timer message, MsgWaitForMultipleObjects() will allow us to wait for input directly with a timeout. Before this change, sleeping for 20 ms would actually sleep for around 30 ms, with this change the sleep time is pretty accurate at 20-21 ms. (cherry picked from commit 2670eb4)
- Loading branch information