From 1fb31c73cb231c2f57361b547bdf64ec249f8d12 Mon Sep 17 00:00:00 2001 From: zminhquanz Date: Sun, 11 Jun 2017 19:26:17 +0700 Subject: [PATCH 1/6] Fix running slow message , it's always show when game run stable above 98% speed --- Core/HLE/sceDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceDisplay.cpp b/Core/HLE/sceDisplay.cpp index 9f271ee2de..0d83c4b0f4 100644 --- a/Core/HLE/sceDisplay.cpp +++ b/Core/HLE/sceDisplay.cpp @@ -413,7 +413,7 @@ static bool IsRunningSlow() { best = std::max(fpsHistory[index], best); } - return best < 59.94; + return best < 57.94; } return false; From 98586e0af8674b753c58258988ad46f4de183f53 Mon Sep 17 00:00:00 2001 From: zminhquanz Date: Sun, 11 Jun 2017 20:42:54 +0700 Subject: [PATCH 2/6] Oops --- Core/HLE/sceDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceDisplay.cpp b/Core/HLE/sceDisplay.cpp index 0d83c4b0f4..5da185f088 100644 --- a/Core/HLE/sceDisplay.cpp +++ b/Core/HLE/sceDisplay.cpp @@ -413,7 +413,7 @@ static bool IsRunningSlow() { best = std::max(fpsHistory[index], best); } - return best < 57.94; + return best < 58.94; } return false; From 6e2f152919b221d1b0cf6992c73f2213eeeb5318 Mon Sep 17 00:00:00 2001 From: zminhquanz Date: Sun, 11 Jun 2017 20:44:41 +0700 Subject: [PATCH 3/6] Add credit developer --- UI/MiscScreens.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/MiscScreens.cpp b/UI/MiscScreens.cpp index 293bf9b4b3..d01a98fe51 100644 --- a/UI/MiscScreens.cpp +++ b/UI/MiscScreens.cpp @@ -646,6 +646,7 @@ void CreditsScreen::render() { "Kyhel", "xebra", "LunaMoo", + "zminhquanz", "", cr->T("specialthanks", "Special thanks to:"), "Maxim for his amazing Atrac3+ decoder work", From bb5114bc84f104789553e1a6aa2411d9edda9201 Mon Sep 17 00:00:00 2001 From: zminhquanz Date: Mon, 12 Jun 2017 13:41:04 +0700 Subject: [PATCH 4/6] Add 1 line --- Core/HLE/sceDisplay.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/HLE/sceDisplay.cpp b/Core/HLE/sceDisplay.cpp index 5da185f088..de92d00ad5 100644 --- a/Core/HLE/sceDisplay.cpp +++ b/Core/HLE/sceDisplay.cpp @@ -413,6 +413,7 @@ static bool IsRunningSlow() { best = std::max(fpsHistory[index], best); } + System_GetPropertyInt(SYSPROP_DISPLAY_REFRESH_RATE) / 1.001f; return best < 58.94; } From e2c9fa7f5701df8b27a6065a224457527e667489 Mon Sep 17 00:00:00 2001 From: zminhquanz Date: Thu, 15 Jun 2017 12:15:56 +0700 Subject: [PATCH 5/6] Fixes --- Core/HLE/sceDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceDisplay.cpp b/Core/HLE/sceDisplay.cpp index de92d00ad5..d2b85aa719 100644 --- a/Core/HLE/sceDisplay.cpp +++ b/Core/HLE/sceDisplay.cpp @@ -405,6 +405,7 @@ static bool IsRunningSlow() { if (fpsHistoryValid >= 8) { // Look at only the last 15 samples (starting at the 14th sample behind current.) int rangeStart = fpsHistoryPos - std::min(fpsHistoryValid, 14); + System_GetPropertyInt(SYSPROP_DISPLAY_REFRESH_RATE) / 1.001f; double best = 0.0f; for (int i = rangeStart; i <= fpsHistoryPos; ++i) { @@ -413,7 +414,6 @@ static bool IsRunningSlow() { best = std::max(fpsHistory[index], best); } - System_GetPropertyInt(SYSPROP_DISPLAY_REFRESH_RATE) / 1.001f; return best < 58.94; } From 7347c2846461b7d9096cea8df392ffd4253de86e Mon Sep 17 00:00:00 2001 From: zminhquanz Date: Thu, 15 Jun 2017 21:43:41 +0700 Subject: [PATCH 6/6] Fixes --- Core/HLE/sceDisplay.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/HLE/sceDisplay.cpp b/Core/HLE/sceDisplay.cpp index d2b85aa719..5c96f8691f 100644 --- a/Core/HLE/sceDisplay.cpp +++ b/Core/HLE/sceDisplay.cpp @@ -405,7 +405,6 @@ static bool IsRunningSlow() { if (fpsHistoryValid >= 8) { // Look at only the last 15 samples (starting at the 14th sample behind current.) int rangeStart = fpsHistoryPos - std::min(fpsHistoryValid, 14); - System_GetPropertyInt(SYSPROP_DISPLAY_REFRESH_RATE) / 1.001f; double best = 0.0f; for (int i = rangeStart; i <= fpsHistoryPos; ++i) { @@ -414,7 +413,7 @@ static bool IsRunningSlow() { best = std::max(fpsHistory[index], best); } - return best < 58.94; + return best < System_GetPropertyInt(SYSPROP_DISPLAY_REFRESH_RATE) / 1.001f; } return false;