Return of "Disable range culling" but now only as a compat.ini setting to enhance games

This commit is contained in:
Henrik Rydgård committed 2026-06-27 13:02:47 +02:00
1 parent a4d21d23bb
commit 9339d455ef
4 files changed
+14 -1

No files matched your search

+1
View File
@@ -168,6 +168,7 @@ void Compatibility::CheckSettings(IniFile &iniFile, const std::string &gameID) {
CheckSetting(iniFile, gameID, "CorrectCullAfterClip", &flags_.CorrectCullAfterClip);
CheckSetting(iniFile, gameID, "SpriteBorderFix", &flags_.SpriteBorderFix);
CheckSetting(iniFile, gameID, "TextureCLUTInShader", &flags_.TextureCLUTInShader);
CheckSetting(iniFile, gameID, "DisableRangeCulling", &flags_.DisableRangeCulling);
}
void Compatibility::CheckVRSettings(IniFile &iniFile, const std::string &gameID) {
+1
View File
@@ -123,6 +123,7 @@ struct CompatFlags {
bool CorrectCullAfterClip;
float SpriteBorderFix;
bool TextureCLUTInShader;
bool DisableRangeCulling;
};
struct VRCompat {
+1 -1
View File
@@ -613,7 +613,7 @@ u32 GPUCommonHW::CheckGPUFeatures() const {
features |= GPU_USE_CLEAR_RAM_HACK;
}
if (!draw_->GetBugs().Has(Draw::Bugs::BROKEN_NAN_IN_CONDITIONAL)) {
if (!PSP_CoreParameter().compat.flags().DisableRangeCulling && !draw_->GetBugs().Has(Draw::Bugs::BROKEN_NAN_IN_CONDITIONAL)) {
features |= GPU_USE_VS_RANGE_CULLING;
}
+11
View File
@@ -2174,3 +2174,14 @@ ULUS10018 = true
UCJS18003 = true
ULES00291 = true
NPJG00033 = true
[DisableRangeCulling]
# Gran Turismo has some cases where things on the side of the road slightly glitch out of existence at the edge
# of the screen. There's no benefit to range culling in this game, so let's disable it.
UCUS98632 = true
UCES01245 = true
UCAS40265 = true
UCJS10100 = true
UCKS45127 = true
UCJS18055 = true
NPJG00027 = true