Always enable the secondary texture cache

This commit is contained in:
Henrik Rydgård committed 2026-06-13 13:34:41 +02:00
1 parent 0501dc4ec1
commit d6e0dd1478
4 files changed
+3 -29

No files matched your search

-1
View File
@@ -134,7 +134,6 @@ void Compatibility::CheckSettings(IniFile &iniFile, const std::string &gameID) {
CheckSetting(iniFile, gameID, "ForceLowerResolutionForEffectsOff", &flags_.ForceLowerResolutionForEffectsOff);
CheckSetting(iniFile, gameID, "AllowDownloadCLUT", &flags_.AllowDownloadCLUT);
CheckSetting(iniFile, gameID, "NearestFilteringOnFramebufferCreate", &flags_.NearestFilteringOnFramebufferCreate);
CheckSetting(iniFile, gameID, "SecondaryTextureCache", &flags_.SecondaryTextureCache);
CheckSetting(iniFile, gameID, "EnglishOrJapaneseOnly", &flags_.EnglishOrJapaneseOnly);
CheckSetting(iniFile, gameID, "OldAdrenoPixelDepthRoundingGL", &flags_.OldAdrenoPixelDepthRoundingGL);
CheckSetting(iniFile, gameID, "ForceCircleButtonConfirm", &flags_.ForceCircleButtonConfirm);
-1
View File
@@ -89,7 +89,6 @@ struct CompatFlags {
bool ForceLowerResolutionForEffectsOff;
bool AllowDownloadCLUT;
bool NearestFilteringOnFramebufferCreate;
bool SecondaryTextureCache;
bool EnglishOrJapaneseOnly;
bool OldAdrenoPixelDepthRoundingGL;
bool ForceCircleButtonConfirm;
+3 -3
View File
@@ -877,7 +877,7 @@ void TextureCacheCommon::Decimate(TexCacheEntry *exceptThisOne, bool forcePressu
s64 secondCacheSizeEstimate = SecondCacheSizeEstimate();
// If enabled, we also need to clear the secondary cache.
if (PSP_CoreParameter().compat.flags().SecondaryTextureCache && (forcePressure || secondCacheSizeEstimate >= TEXCACHE_SECOND_MIN_PRESSURE)) {
if (forcePressure || secondCacheSizeEstimate >= TEXCACHE_SECOND_MIN_PRESSURE) {
const u32 had = secondCacheSizeEstimate;
for (TexCache::iterator iter = secondCache_.begin(); iter != secondCache_.end(); ) {
@@ -2651,8 +2651,8 @@ bool TextureCacheCommon::CheckFullHash(TexCacheEntry *entry, bool &doDelete) {
}
// Don't give up just yet.
// Let's try the secondary cache if it's been invalidated before.
if (PSP_CoreParameter().compat.flags().SecondaryTextureCache) {
// Let's try the secondary cache if it's been invalidated before (and we're not dealing with detected video).
if (!isVideo) {
// If it's failed a bunch of times, then the second cache is just wasting time and VRAM.
// In that case, skip.
if (entry->numInvalidated > 2 && entry->numInvalidated < 128 && !lowMemoryMode_) {
-24
View File
@@ -1580,30 +1580,6 @@ NPJH50366 = true
# Temporary compatibility option, while working on the GPU CLUT-from-framebuffer path.
# Not required for any games now that it works, but might be useful for development.
[SecondaryTextureCache]
# Was previously the "Retain changed textures" setting.
# See https://github.com/hrydgard/ppsspp/issues/16339#issuecomment-1304826656
# Popolocrois
UCJS10005 = true
UCAS40009 = true
ULUS10018 = true
UCJS18003 = true
ULES00291 = true
NPJG00033 = true
# Fushigi no Dungeon: Fuurai no Shiren 4 Plus - Kami no Hitomi to Akuma no Heso
ULJS00547 = true
NPJH50698 = true
# Gran Turismo text rendering
UCES01245 = true
UCUS98632 = true
UCJS10100 = true
UCKS45127 = true
UCJS18055 = true
NPJG00027 = true
[EnglishOrJapaneseOnly]
# Twinbee Portable, see issue #16382
ULAS42089 = true