aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authoryuzubot <yuzu@yuzu-emu.org>2023-03-28 12:03:15 +0000
committeryuzubot <yuzu@yuzu-emu.org>2023-03-28 12:03:15 +0000
commit18a6fd6d2cf3dcda935e406a311cdc29ddf9350b (patch)
treea43b51a4056ad7664346a63f145c889da1f59d16 /src/core
parentfbbf532d42f5688533d31f7fe6f75526b4187e5c (diff)
"Merge Tagged PR 9982"mainline-0-1386
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core_timing.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp
index cd4df45228..4f2692b05c 100644
--- a/src/core/core_timing.cpp
+++ b/src/core/core_timing.cpp
@@ -10,6 +10,10 @@
#include "common/windows/timer_resolution.h"
#endif
+#ifdef ARCHITECTURE_x86_64
+#include "common/x64/cpu_wait.h"
+#endif
+
#include "common/microprofile.h"
#include "core/core_timing.h"
#include "core/core_timing_util.h"
@@ -269,7 +273,11 @@ void CoreTiming::ThreadLoop() {
if (wait_time >= timer_resolution_ns) {
Common::Windows::SleepForOneTick();
} else {
+#ifdef ARCHITECTURE_x86_64
+ Common::X64::MicroSleep();
+#else
std::this_thread::yield();
+#endif
}
}