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.
This commit is contained in:
Henrik Rydgård committed 2021-07-11 11:09:05 +02:00
1 parent 57b4cd394a
commit 5859596b95
1 file changed
+5 -2
+5 -2
View File
@@ -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) {