From 5859596b956ba74f2db0fe04703657c9575a3aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 11 Jul 2021 11:09:05 +0200 Subject: [PATCH] Make the "Running Slow" warning a bit more lenient. Might help #12024, or at least the annoying unnecessary warning. Our audio mixer is able to cover for 97% speed by stretching the sound anyway, so I think there's not much point in a visually loud warning until it drops below that. --- Core/HLE/sceDisplay.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceDisplay.cpp b/Core/HLE/sceDisplay.cpp index ae3e096039..b0738bc8f4 100644 --- a/Core/HLE/sceDisplay.cpp +++ b/Core/HLE/sceDisplay.cpp @@ -443,7 +443,7 @@ static bool IsRunningSlow() { best = std::max(fpsHistory[index], best); } - return best < System_GetPropertyFloat(SYSPROP_DISPLAY_REFRESH_RATE) * 0.999; + return best < System_GetPropertyFloat(SYSPROP_DISPLAY_REFRESH_RATE) * 0.97; } return false; @@ -770,7 +770,10 @@ void __DisplayFlip(int cyclesLate) { // Let the user know if we're running slow, so they know to adjust settings. // Sometimes users just think the sound emulation is broken. static bool hasNotifiedSlow = false; - if (!g_Config.bHideSlowWarnings && !hasNotifiedSlow && PSP_CoreParameter().fpsLimit == FPSLimit::NORMAL && IsRunningSlow()) { + if (!g_Config.bHideSlowWarnings && + !hasNotifiedSlow && + PSP_CoreParameter().fpsLimit == FPSLimit::NORMAL && + IsRunningSlow()) { #ifndef _DEBUG auto err = GetI18NCategory("Error"); if (g_Config.bSoftwareRendering) {