Use corrected VRAM budget for target VRAM calculation

master
Ansariel 2022-09-17 13:37:31 +02:00
parent 7f9d028fe4
commit 59ed674600
1 changed files with 3 additions and 1 deletions

View File

@ -4903,7 +4903,9 @@ void LLWindowWin32::LLWindowWin32Thread::updateVRAMUsage()
}
F32 eu_error = (F32)((S32)eu_mb - (S32)cu_mb) / (F32)cu_mb;
U32 target_mb = info.Budget / 1024 / 1024;
// <FS:Ansariel> Use corrected budget...
//U32 target_mb = info.Budget / 1024 / 1024;
U32 target_mb = budget_mb;
if (target_mb > 4096) // if 4GB are installed, try to leave 2GB free
{