aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/drivers/virtual_amiibo.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-03-01 21:06:19 -0500
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-03-05 02:36:31 -0500
commite25334b8b3e6e1374b7453a421b0d531ccd60904 (patch)
treef21f509d4c7458a79e2fc399c1de3036a7efd51d /src/input_common/drivers/virtual_amiibo.cpp
parentfeea72a15e4995bf52b50983b2e978cce943d8d8 (diff)
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.
Diffstat (limited to 'src/input_common/drivers/virtual_amiibo.cpp')
0 files changed, 0 insertions, 0 deletions