diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-03-28 15:09:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-28 15:09:35 +0200 |
commit | 40efd2ab56c2296da4524085a133021f7731e67f (patch) | |
tree | a43b51a4056ad7664346a63f145c889da1f59d16 /src/core | |
parent | Merge pull request #10002 from german77/log (diff) | |
parent | telemetry: Add waitpkg instruction (diff) | |
download | yuzu-40efd2ab56c2296da4524085a133021f7731e67f.tar yuzu-40efd2ab56c2296da4524085a133021f7731e67f.tar.gz yuzu-40efd2ab56c2296da4524085a133021f7731e67f.tar.bz2 yuzu-40efd2ab56c2296da4524085a133021f7731e67f.tar.lz yuzu-40efd2ab56c2296da4524085a133021f7731e67f.tar.xz yuzu-40efd2ab56c2296da4524085a133021f7731e67f.tar.zst yuzu-40efd2ab56c2296da4524085a133021f7731e67f.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core_timing.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index cd4df4522..4f2692b05 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 } } |