From 904cf4dc9381f91e9af9f7811a3e7092159b2264 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Fri, 3 Feb 2023 15:37:52 -0500 Subject: [PATCH] Ansariel's fix for fast cache eating up all texture time --- indra/newview/llviewertexturelist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index 5c99bb68bb7..dac8b65c5c5 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -835,7 +835,8 @@ void LLViewerTextureList::updateImages(F32 max_time) } //loading from fast cache - max_time -= updateImagesLoadingFastCache(max_time); + F32 fastcache_time = updateImagesLoadingFastCache(max_time / 3); + max_time = llmax(max_time * 2/3, max_time - fastcache_time); // at least 66% for update fetch & create updateImagesDecodePriorities(); -- GitLab