mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-05 20:24:01 +01:00
Improve some initialization in CrossSIMD.h. Add comments about CLUT variants
This commit is contained in:
1 parent
f65b3f7a6b
commit
54d5c1d5e3
3 files changed
+12
-10
No files matched your search
@@ -52,7 +52,8 @@
|
||||
#define TEXTURE_KILL_AGE_LOWMEM 60
|
||||
// Not used in lowmem mode.
|
||||
#define TEXTURE_SECOND_KILL_AGE 100
|
||||
// Used when there are multiple CLUT variants of a texture.
|
||||
// Used when there are multiple CLUT variants of a texture, to avoid blowing up memory. See #10418
|
||||
// We should change this to do shader-based palette expansion.
|
||||
#define TEXTURE_KILL_AGE_CLUT 6
|
||||
|
||||
#define TEXTURE_CLUT_VARIANTS_MIN 6
|
||||
@@ -836,8 +837,8 @@ void TextureCacheCommon::Decimate(TexCacheEntry *exceptThisOne, bool forcePressu
|
||||
++iter;
|
||||
continue;
|
||||
}
|
||||
bool hasClut = (iter->second->status & TexCacheEntry::STATUS_CLUT_VARIANTS) != 0;
|
||||
int killAge = hasClut ? TEXTURE_KILL_AGE_CLUT : killAgeBase;
|
||||
bool hasClutVariants = (iter->second->status & TexCacheEntry::STATUS_CLUT_VARIANTS) != 0;
|
||||
int killAge = hasClutVariants ? TEXTURE_KILL_AGE_CLUT : killAgeBase;
|
||||
if (iter->second->lastFrame + killAge < gpuStats.totals.numFlips) {
|
||||
DeleteTexture(iter++);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user