From 9ad01b60c8cefe0bb2d91eabf67cf54a1eeeb92c Mon Sep 17 00:00:00 2001 From: givethesourceplox <272928635+givethesourceplox@users.noreply.github.com> Date: Fri, 30 Oct 2026 09:58:10 -0300 Subject: video_core: arm64 spin hint in the GPU split Pause() fell back to a sched_yield system call on arm64; use the yield instruction like the x86 PAUSE. Mark the Windows-only back thread id unused for clang. Assisted-by: Claude (Anthropic) --- src/video_core/gpu_split.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/video_core/gpu_split.cpp b/src/video_core/gpu_split.cpp index f913ca82ce..2bc8e29470 100644 --- a/src/video_core/gpu_split.cpp +++ b/src/video_core/gpu_split.cpp @@ -34,12 +34,14 @@ void Pause() { _mm_pause(); #elif defined(__x86_64__) || defined(__i386__) __builtin_ia32_pause(); +#elif defined(__aarch64__) + asm volatile("yield"); #else std::this_thread::yield(); #endif } -std::atomic g_back_thread_id{}; +[[maybe_unused]] std::atomic g_back_thread_id{}; std::atomic g_back_busy{}; } // Anonymous namespace -- cgit v1.2.3