diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 2fda08f1d8..e378cd65e9 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -21613,6 +21613,17 @@ Change of this parameter will affect the layout of buttons in notification toast Value 0 + FSDisableAMDTextureMemoryCheck + + Comment + Disable checking for low texture memory on AMD graphics cards + Persist + 1 + Type + Boolean + Value + 0 + diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp index 806e81f0a1..191d78fc9a 100755 --- a/indra/newview/llviewertexture.cpp +++ b/indra/newview/llviewertexture.cpp @@ -459,6 +459,13 @@ bool LLViewerTexture::isMemoryForTextureLow() const F32 WAIT_TIME = 1.0f ; //second static LLFrameTimer timer ; + // Disable memory checking on request + static LLCachedControl FSDisableMemCheck(gSavedSettings, "FSDisableAMDTextureMemoryCheck"); + + if( FSDisableMemCheck ) + return false; + // + if(timer.getElapsedTimeF32() < WAIT_TIME) //call this once per second. { return false;