There was an error fetching the commit references. Please try again later.
core_timing: Use higher precision sleeps on Windows
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.
Showing
- src/common/wall_clock.cpp 5 additions, 0 deletionssrc/common/wall_clock.cpp
- src/common/wall_clock.h 3 additions, 0 deletionssrc/common/wall_clock.h
- src/core/core_timing.cpp 33 additions, 22 deletionssrc/core/core_timing.cpp
- src/core/core_timing.h 5 additions, 1 deletionsrc/core/core_timing.h
- src/video_core/gpu.cpp 1 addition, 1 deletionsrc/video_core/gpu.cpp
Loading
Please register or sign in to comment