From 59ed674600c483e42426d51c19fa805fc4410a45 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sat, 17 Sep 2022 13:37:31 +0200 Subject: [PATCH] Use corrected VRAM budget for target VRAM calculation --- indra/llwindow/llwindowwin32.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp index 7f6ecb0a6f..f91ab2d6a2 100644 --- a/indra/llwindow/llwindowwin32.cpp +++ b/indra/llwindow/llwindowwin32.cpp @@ -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; + // 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 {