From 1899784afa59e7f85493949e19ea6cc05df1e61f Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Thu, 7 Jul 2011 14:46:08 +0200 Subject: [PATCH] new RAM dependent minimum texture memory limits --- indra/newview/llviewertexturelist.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index 89e316e59..13f3c8f46 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -1094,8 +1094,12 @@ const S32 MAX_VIDEO_RAM = 512; // 512MB max for performance reasons. S32 LLViewerTextureList::getMinVideoRamSetting() { S32 system_ram = (S32)BYTES_TO_MEGA_BYTES(gSysMemory.getPhysicalMemoryClamped()); - //min texture mem sets to 64M if total physical mem is more than 1.5GB - return (system_ram > 1500) ? 64 : MIN_VIDEO_RAM_IN_MEGA_BYTES ; + if (system_ram > 2000) + return 128; + else if (system_ram > 1000) + return 64; + else + return MIN_VIDEO_RAM_IN_MEGA_BYTES; } //static