diff options
| author | lizzie <lizzie@eden-emu.dev> | 2026-05-30 21:59:10 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-05-30 21:59:10 +0200 |
| commit | 7c32cf03a1ce2a88b5bda041a5aebc8405fe634d (patch) | |
| tree | 8eabbb338cceebd7f018a7c442a304fd66c68adc /src/qt_common/qt_common.cpp | |
| parent | ff7bbaea7db5a9a9528c1ef087d3a49a18931b52 (diff) | |
[core/core_timing] better MWAITX and WAITPKG delays (#3984)
This implements MWAITX and WAITPKG extensions (umonitor, mwait) for CPUs that support them.
Reduces wait times and bypasses the timing stuff from the OS that is slow (windows notably). generally it should answer within 0.2 to 0.5 microsecs (since most requests wait for that long).
Also does a general rework of static ctors and stuff
Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3984
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: crueter <crueter@eden-emu.dev>
Diffstat (limited to 'src/qt_common/qt_common.cpp')
| -rw-r--r-- | src/qt_common/qt_common.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/qt_common/qt_common.cpp b/src/qt_common/qt_common.cpp index 753c537736..7550e931af 100644 --- a/src/qt_common/qt_common.cpp +++ b/src/qt_common/qt_common.cpp @@ -13,12 +13,9 @@ #include "common/fs/path_util.h" #include "common/logging.h" #include "common/scm_rev.h" +#include "common/cpu_features.h" #include "core/memory.h" -#ifdef ARCHITECTURE_x86_64 -#include "common/x64/cpu_detect.h" -#endif - #include <QGuiApplication> #include <QStringLiteral> #include "core/frontend/emu_window.h" @@ -214,7 +211,7 @@ void Init(QWidget* root) { LOG_INFO(Frontend, "Eden Version: {}", yuzu_build_version); LogRuntimes(); #ifdef ARCHITECTURE_x86_64 - const auto& caps = Common::GetCPUCaps(); + const auto& caps = Common::g_cpu_caps; std::string cpu_string = caps.cpu_string; if (caps.avx || caps.avx2 || caps.avx512f) { cpu_string += " | AVX"; |
