FIRE-11852; Disable memory probing via debug settings.

Nicky 2013-10-25 22:27:22 +02:00
parent 6f1b22eee0
commit 5c7fe2eddf
2 changed files with 18 additions and 0 deletions

View File

@ -21613,6 +21613,17 @@ Change of this parameter will affect the layout of buttons in notification toast
<key>Value</key>
<integer>0</integer>
</map>
<key>FSDisableAMDTextureMemoryCheck</key>
<map>
<key>Comment</key>
<string>Disable checking for low texture memory on AMD graphics cards</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>0</integer>
</map>
</map>
</llsd>

View File

@ -459,6 +459,13 @@ bool LLViewerTexture::isMemoryForTextureLow()
const F32 WAIT_TIME = 1.0f ; //second
static LLFrameTimer timer ;
// <FS:ND> Disable memory checking on request
static LLCachedControl<bool> FSDisableMemCheck(gSavedSettings, "FSDisableAMDTextureMemoryCheck");
if( FSDisableMemCheck )
return false;
// </FS:ND>
if(timer.getElapsedTimeF32() < WAIT_TIME) //call this once per second.
{
return false;