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:
wrenczes@gmail.com
2011-04-19 07:38:20 +00:00
parent 7a10993114
commit f87de5c38d

View File

@@ -914,8 +914,8 @@ void WResourceManager::ResetCacheLimits()
textureWCache.Resize(HUGE_CACHE_LIMIT,MAX_CACHE_OBJECTS);
#endif
#else
static unsigned int ram(ramAvailable() / 2);
unsigned int myNewSize = ram - OPERATIONAL_SIZE;
unsigned int ram = ramAvailable();
unsigned int myNewSize = ram - OPERATIONAL_SIZE + textureWCache.totalSize;
if (myNewSize < TEXTURES_CACHE_MINSIZE)
{
DebugTrace( "Error, Not enough RAM for Cache: " << myNewSize << " - total Ram: " << ram);