diff options
author | Dave Parks <davep@lindenlab.com> | 2023-03-10 10:52:35 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2023-03-10 10:52:35 -0600 |
commit | 25ede8638209fac8dde5b71bece4bc1dfa30ea16 (patch) | |
tree | ce5deda0c12a9e157c07cb72001eda396b1a542e /indra/llwindow | |
parent | cf72c8ec614fcfc2811f10dfacdc51ed3f477e31 (diff) |
SL-19172 Texture streaming tune up. Incidental decruft.
Diffstat (limited to 'indra/llwindow')
-rw-r--r-- | indra/llwindow/llwindowwin32.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp index 10cf7513b5..666adcf672 100644 --- a/indra/llwindow/llwindowwin32.cpp +++ b/indra/llwindow/llwindowwin32.cpp @@ -4857,13 +4857,14 @@ void LLWindowWin32::LLWindowWin32Thread::updateVRAMUsage() DXGI_QUERY_VIDEO_MEMORY_INFO info; mDXGIAdapter->QueryVideoMemoryInfo(0, DXGI_MEMORY_SEGMENT_GROUP_LOCAL, &info); - #if 0 // debug 0 budget and 0 CU info.Budget = 0; info.CurrentUsage = 0; #endif U32 budget_mb = info.Budget / 1024 / 1024; + gGLManager.mVRAM = llmax(gGLManager.mVRAM, (S32) budget_mb); + U32 afr_mb = info.AvailableForReservation / 1024 / 1024; // correct for systems that misreport budget if (budget_mb == 0) |