ifdef(psp) on cache hit miss handling.

This commit is contained in:
omegablast2002@yahoo.com
2013-02-26 23:22:49 +00:00
parent f9bd6e1c44
commit ef18f376b1

View File

@@ -1167,10 +1167,11 @@ cacheItem* WCache<cacheItem, cacheActual>::Get(int id, const string& filename, i
// check if we're doing a card lookup // check if we're doing a card lookup
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* commented out for the following reason: // commented out for the following reason:
cardgui updates so quick that the only reason a person would notice a cache miss is because it takes the //cardgui updates so quick that the only reason a person would notice a cache miss is because it takes the
engine longer to switch the card quad from kGeneric to the actual image, than it does to just let the update pass. //engine longer to switch the card quad from kGeneric to the actual image, than it does to just let the update pass.
if (submode & TEXTURE_SUB_CARD) #if defined (PSP)
if (submode & TEXTURE_SUB_CARD)
{ {
// processing a cache miss, return a generic card & queue up an async read // processing a cache miss, return a generic card & queue up an async read
@@ -1183,7 +1184,8 @@ cacheItem* WCache<cacheItem, cacheActual>::Get(int id, const string& filename, i
CacheEngine::Instance()->QueueRequest(filename, submode, lookup); CacheEngine::Instance()->QueueRequest(filename, submode, lookup);
return it->second; return it->second;
} }
*/ #endif
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Space in cache, make new texture //Space in cache, make new texture
return LoadIntoCache(lookup, filename, submode, style); return LoadIntoCache(lookup, filename, submode, style);