From b21c081860d952916cae52c4fada8c993b1593a9 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 18 Mar 2017 12:08:06 -0700 Subject: [PATCH] Texcache: Clarify STATUS_FREE_CHANGE usage. --- GPU/Common/TextureCacheCommon.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GPU/Common/TextureCacheCommon.h b/GPU/Common/TextureCacheCommon.h index 9cb2d04d0f..bcca4c19f5 100644 --- a/GPU/Common/TextureCacheCommon.h +++ b/GPU/Common/TextureCacheCommon.h @@ -104,6 +104,9 @@ struct TexCacheEntry { STATUS_DEPALETTIZE = 0x40, // Needs to go through a depalettize pass. STATUS_TO_SCALE = 0x80, // Pending texture scaling in a later frame. STATUS_IS_SCALED = 0x100, // Has been scaled (can't be replaceImages'd.) + // When hashing large textures, we optimize 512x512 down to 512x272 by default, since this + // is commonly the only part accessed. If access is made above 272, we hash the entire + // texture, and set this flag to allow scaling the texture just once for the new hash. STATUS_FREE_CHANGE = 0x200, // Allow one change before marking "frequent". };