mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-04-01 12:10:06 +00:00

The precision of sleep_for and wait_for is limited to 1-1.5ms on Windows. Using SleepForOneTick() allows us to sleep for exactly one interval of the current timer resolution. This allows us to take advantage of systems that have a timer resolution of 0.5ms to reduce CPU overhead in the event loop.