FIRE-11852; Disable memory probing via debug settings.
parent
6f1b22eee0
commit
5c7fe2eddf
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue