Skip to content

Commit

Permalink
Merge pull request #14605 from hrydgard/more-lenient-slow-warning
Browse files Browse the repository at this point in the history
Make the "Running Slow" warning a bit more lenient.
  • Loading branch information
hrydgard authored Jul 11, 2021
2 parents deee9f9 + 5859596 commit eb0f0d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Core/HLE/sceDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit eb0f0d3

Please sign in to comment.