SL-16972 Fix for blurry textures when "running out" of system memory.

master
Dave Parks 2022-03-07 17:16:29 -06:00
parent cad73f2403
commit 2b2a5da099
2 changed files with 3 additions and 2 deletions

View File

@ -6487,7 +6487,7 @@
<key>Type</key>
<string>F32</string>
<key>Value</key>
<real>1.6</real>
<real>4.0</real>
</map>
<key>MaxPersistentNotifications</key>
<map>

View File

@ -549,10 +549,11 @@ void LLGLTexMemBar::draw()
U32 texFetchLatMed = U32(recording.getMean(LLTextureFetch::sTexFetchLatency).value() * 1000.0f);
U32 texFetchLatMax = U32(recording.getMax(LLTextureFetch::sTexFetchLatency).value() * 1000.0f);
text = llformat("GL Tot: %d/%d MB GL Free: %d MB Bound: %4d/%4d MB FBO: %d MB Raw Tot: %d MB Bias: %.2f Cache: %.1f/%.1f MB",
text = llformat("GL Tot: %d/%d MB GL Free: %d Sys Free: %d MB Bound: %4d/%4d MB FBO: %d MB Raw Tot: %d MB Bias: %.2f Cache: %.1f/%.1f MB",
total_mem.value(),
max_total_mem.value(),
LLImageGLThread::getFreeVRAMMegabytes(),
LLMemory::getAvailableMemKB()/1024,
bound_mem.value(),
max_bound_mem.value(),
LLRenderTarget::sBytesAllocated/(1024*1024),