File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -556,12 +556,13 @@ void LLViewerTexture::updateClass()
556
556
// don't execute above until the slam to 1.5 has a chance to take effect
557
557
sEvaluationTimer .reset ();
558
558
559
- // lower discard bias over time when free memory is available
560
- if (sDesiredDiscardBias > 1 .f && over_pct < 0 .f )
559
+ // lower discard bias over time when at least 10% of budget is free
560
+ const F32 FREE_PERCENTAGE_TRESHOLD = -0 .1f ;
561
+ if (sDesiredDiscardBias > 1 .f && over_pct < FREE_PERCENTAGE_TRESHOLD)
561
562
{
562
563
static LLCachedControl<F32> high_mem_discard_decrement (gSavedSettings , " RenderHighMemMinDiscardDecrement" , .1f );
563
564
564
- F32 decrement = high_mem_discard_decrement - llmin (over_pct, 0 .f );
565
+ F32 decrement = high_mem_discard_decrement - llmin (over_pct - FREE_PERCENTAGE_TRESHOLD , 0 .f );
565
566
sDesiredDiscardBias -= decrement * gFrameIntervalSeconds ;
566
567
}
567
568
}
You can’t perform that action at this time.
0 commit comments