From f87de5c38dee88eb998f7816abaa8689de7a747f Mon Sep 17 00:00:00 2001 From: "wrenczes@gmail.com" Date: Tue, 19 Apr 2011 07:38:20 +0000 Subject: [PATCH] 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. --- projects/mtg/src/WResourceManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/mtg/src/WResourceManager.cpp b/projects/mtg/src/WResourceManager.cpp index 5060f033d..7840ecdbd 100644 --- a/projects/mtg/src/WResourceManager.cpp +++ b/projects/mtg/src/WResourceManager.cpp @@ -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);