Jeck - Quick hack fix for cache miss recording, proving that's the source of the cache speed issue. Runs at full speed with card images and unmanaged textures... but still too slow without. I think I can clear this up in the next six hours. Hopefully :)

This commit is contained in:
wagic.jeck
2009-10-13 00:43:32 +00:00
parent d5556d0a43
commit 405a725cd0

View File

@@ -1277,18 +1277,13 @@ cacheItem * WCache<cacheItem, cacheActual>::Get(string id, int style, int submod
}
}
if(style == RETRIEVE_MANAGE){
if(item){
managed[lookup] = item; //Record a hit.
if(style == RETRIEVE_MANAGE){
managed[lookup] = item; //Record hit or miss
if(item)
item->deadbolt(); //Make permanent.
}
else if(mError == CACHE_ERROR_404)
managed[lookup] = item; //File not found. Record a miss
}
else{
if(!item && mError != CACHE_ERROR_404)
RemoveMiss(lookup);
else
//Record it, hit or miss.
cache[lookup] = item;
}