diff --git a/Core/Compatibility.cpp b/Core/Compatibility.cpp index c38251e9d3..8edbf89514 100644 --- a/Core/Compatibility.cpp +++ b/Core/Compatibility.cpp @@ -67,6 +67,7 @@ void Compatibility::CheckSettings(IniFile &iniFile, const std::string &gameID) { CheckSetting(iniFile, gameID, "ForceUMDDelay", &flags_.ForceUMDDelay); CheckSetting(iniFile, gameID, "ForceMax60FPS", &flags_.ForceMax60FPS); CheckSetting(iniFile, gameID, "Fixed60FPShack", &flags_.Fixed60FPShack); + CheckSetting(iniFile, gameID, "Fixed30FPShack", &flags_.Fixed30FPShack); CheckSetting(iniFile, gameID, "JitInvalidationHack", &flags_.JitInvalidationHack); CheckSetting(iniFile, gameID, "HideISOFiles", &flags_.HideISOFiles); CheckSetting(iniFile, gameID, "MoreAccurateVMMUL", &flags_.MoreAccurateVMMUL); diff --git a/Core/Compatibility.h b/Core/Compatibility.h index 058bd19b39..fb2078e585 100644 --- a/Core/Compatibility.h +++ b/Core/Compatibility.h @@ -66,6 +66,7 @@ struct CompatFlags { bool ForceUMDDelay; bool ForceMax60FPS; bool Fixed60FPShack; + bool Fixed30FPShack; bool JitInvalidationHack; bool HideISOFiles; bool MoreAccurateVMMUL; diff --git a/Core/HLE/ReplaceTables.cpp b/Core/HLE/ReplaceTables.cpp index 61a0bdbe52..34215cd8d2 100644 --- a/Core/HLE/ReplaceTables.cpp +++ b/Core/HLE/ReplaceTables.cpp @@ -1341,8 +1341,12 @@ static int Hook_soltrigger_render_ucschar() { } static int Hook_gow_fps_hack() { - if (PSP_CoreParameter().compat.flags().Fixed60FPShack) { - __DisplayWaitForVblanks("vblank start waited", 1); + if (PSP_CoreParameter().compat.flags().Fixed60FPShack || PSP_CoreParameter().compat.flags().Fixed30FPShack) { + if (PSP_CoreParameter().compat.flags().Fixed30FPShack) { + __DisplayWaitForVblanks("vblank start waited", 2); + } else { + __DisplayWaitForVblanks("vblank start waited", 1); + } } return 0; } diff --git a/assets/compat.ini b/assets/compat.ini index 580d281454..ea4d0e6f27 100644 --- a/assets/compat.ini +++ b/assets/compat.ini @@ -838,6 +838,43 @@ UCUS98705 = true UCED00971 = true UCUS98713 = true +[Fixed30FPShack] +# As the 60 fps version, but makes the GOW run on a potato, +# Doesn't suffer from softlock #8299 +# disabled by default since most people wouldn't need it +# GOW : Ghost of Sparta +# UCUS98737 = true +# UCAS40323 = true +# NPHG00092 = true +# NPEG00044 = true +# NPEG00045 = true +# NPJG00120 = true +# NPUG80508 = true +# UCJS10114 = true +# UCES01401 = true +# UCES01473 = true +# GOW : Ghost of Sparta Demo +# NPEG90035 = true +# NPUG70125 = true +# NPJG90095 = true +# GOW : Chains Of Olympus +# UCAS40198 = true +# UCUS98653 = true +# UCES00842 = true +# ULJM05438 = true +# ULJM05348 = true +# UCKS45084 = true +# NPUG80325 = true +# NPEG00023 = true +# NPHG00027 = true +# NPHG00028 = true +# NPJH50170 = true +# UCET00844 = true +# GOW: Chains of Olympus Demo +# UCUS98705 = true +# UCED00971 = true +# UCUS98713 = true + [ForceMax60FPS] # Some games are very heavy and render as fast as they can. They benefit greatly from # capping the framerate at 60fps.