Revert the maximum memory size calculation to its previous configuration as a precaution, as my messing around with these values was only meant for debugging purposes.
This commit is contained in:
@@ -914,8 +914,8 @@ void WResourceManager::ResetCacheLimits()
|
|||||||
textureWCache.Resize(HUGE_CACHE_LIMIT,MAX_CACHE_OBJECTS);
|
textureWCache.Resize(HUGE_CACHE_LIMIT,MAX_CACHE_OBJECTS);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
static unsigned int ram(ramAvailable() / 2);
|
unsigned int ram = ramAvailable();
|
||||||
unsigned int myNewSize = ram - OPERATIONAL_SIZE;
|
unsigned int myNewSize = ram - OPERATIONAL_SIZE + textureWCache.totalSize;
|
||||||
if (myNewSize < TEXTURES_CACHE_MINSIZE)
|
if (myNewSize < TEXTURES_CACHE_MINSIZE)
|
||||||
{
|
{
|
||||||
DebugTrace( "Error, Not enough RAM for Cache: " << myNewSize << " - total Ram: " << ram);
|
DebugTrace( "Error, Not enough RAM for Cache: " << myNewSize << " - total Ram: " << ram);
|
||||||
|
|||||||
Reference in New Issue
Block a user