add texcache speedup patch #3275389 - be on the lookout for stale or glitched textures, but i think its safe.

This commit is contained in:
zeromus 2011-04-05 20:36:09 +00:00
parent eb3963bc37
commit 79684686c3
1 changed files with 3 additions and 0 deletions

View File

@ -302,6 +302,8 @@ public:
//the texture matches params, but isnt suspected invalid. accept it.
if (!curr->suspectedInvalid) return curr;
//we suspect the texture may be invalid. we need to do a byte-for-byte comparison to re-establish that it is valid:
//when the palettes dont match:
//note that we are considering 4x4 textures to have a palette size of 0.
//they really have a potentially HUGE palette, too big for us to handle like a normal palette,
@ -321,6 +323,7 @@ public:
//REMINDER to make it primary/newest when we have smarter code
//list_remove(curr);
//list_push_front(curr);
curr->suspectedInvalid = false;
return curr;
REJECT: