From a525d89977a05c8b046a85601531b3d4cd5f65f0 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Mon, 2 Jun 2025 23:29:53 +0200 Subject: [PATCH] Fix texture fast cache ignoring its time limit constraint --- indra/newview/llviewertexturelist.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index f2de57f14c..42472b0e91 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -1498,6 +1498,10 @@ F32 LLViewerTextureList::updateImagesLoadingFastCache(F32 max_time) // Fast cache stats sNumFastCacheReads++; // + // Fix fast cache + if (timer.getElapsedTimeF32() > max_time) + break; + // } mFastCacheList.erase(mFastCacheList.begin(), enditer); return timer.getElapsedTimeF32(); @@ -1609,7 +1613,9 @@ void LLViewerTextureList::decodeAllImages(F32 max_time) LLTimer timer; //loading from fast cache - updateImagesLoadingFastCache(max_time); + // Fix fast cache + //updateImagesLoadingFastCache(max_time); + max_time -= updateImagesLoadingFastCache(max_time); // Update texture stats and priorities std::vector > image_list;