From af6c9aaafa6f7fc69805bd5aaf536bf48559e24c Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Sun, 22 Dec 2024 15:52:31 +0300 Subject: [PATCH] Set busy wait threshold to 2ms. --- UnleashedRecomp/patches/fps_patches.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UnleashedRecomp/patches/fps_patches.cpp b/UnleashedRecomp/patches/fps_patches.cpp index d5155020..8441fd95 100644 --- a/UnleashedRecomp/patches/fps_patches.cpp +++ b/UnleashedRecomp/patches/fps_patches.cpp @@ -89,7 +89,7 @@ void ApplicationUpdateMidAsmHook() if (now < g_next) { - std::this_thread::sleep_for(std::chrono::floor(g_next - now - 1ms)); + std::this_thread::sleep_for(std::chrono::floor(g_next - now - 2ms)); while ((now = std::chrono::steady_clock::now()) < g_next) std::this_thread::yield(); @@ -144,4 +144,4 @@ PPC_FUNC(sub_8312DBF8) while (std::chrono::steady_clock::now() < next) std::this_thread::yield(); -} \ No newline at end of file +}