From f6568bee04114e67b883298d77bcc3591b125721 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 16 Feb 2026 22:33:08 +0100 Subject: [PATCH] [windows] Return x86 microsleep for Windows Microsleep removal may have regressed AOC in msvc --- src/core/core_timing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index 6be73e84d8..d67229cace 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp @@ -13,7 +13,7 @@ #include "common/windows/timer_resolution.h" #endif -#if defined(_WIN32) && defined(ARCHITECTURE_x86_64) && defined(__MINGW64__) +#if defined(_WIN32) && defined(ARCHITECTURE_x86_64) #include "common/x64/cpu_detect.h" #include "common/x64/rdtsc.h" #endif @@ -288,7 +288,7 @@ void CoreTiming::ThreadLoop() { if (next_time) { // There are more events left in the queue, wait until the next event. if (auto wait_time = *next_time - GetGlobalTimeNs().count(); wait_time > 0) { -#if defined(_WIN32) && defined(ARCHITECTURE_x86_64) && defined(__MINGW64__) +#if defined(_WIN32) && defined(ARCHITECTURE_x86_64) while (!paused && !event.IsSet() && wait_time > 0) { wait_time = *next_time - GetGlobalTimeNs().count(); if (wait_time >= timer_resolution_ns) {