Removed the concept of cleaning up misses from the cache, as this was causing flickering on cards whose .zip files are missing. The idea now is that, if we can't load an image, keep the cache miss around permanently so that we never redundantly make a load attempt on that file again.
This commit is contained in:
@@ -76,11 +76,6 @@ protected:
|
||||
|
||||
int makeID(int id, const string& filename, int submode); //Makes an ID appropriate to the submode.
|
||||
|
||||
inline bool RequiresMissCleanup()
|
||||
{
|
||||
return (cacheItems < cache.size() /*&& cache.size() - cacheItems > MAX_CACHE_MISSES*/);
|
||||
}
|
||||
|
||||
inline bool RequiresOldItemCleanup()
|
||||
{
|
||||
if (cacheItems > MAX_CACHE_OBJECTS || cacheItems > maxCached || cacheSize > maxCacheSize)
|
||||
@@ -147,7 +142,6 @@ public:
|
||||
|
||||
bool IsThreaded();
|
||||
|
||||
void Unmiss(string filename);
|
||||
JQuadPtr RetrieveCard(MTGCard * card, int style = RETRIEVE_NORMAL,int submode = CACHE_NORMAL);
|
||||
JSample * RetrieveSample(const string& filename, int style = RETRIEVE_NORMAL, int submode = CACHE_NORMAL);
|
||||
JTexture * RetrieveTexture(const string& filename, int style = RETRIEVE_NORMAL, int submode = CACHE_NORMAL);
|
||||
|
||||
Reference in New Issue
Block a user