new RAM dependent minimum texture memory limits
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user