From 6db39a6f1d3b290fd12ab8e96100ebb89713d8ea Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Thu, 21 Jul 2022 20:52:15 +0300 Subject: SL-17778 'Application not responding' popup while cleaning cache on startup --- indra/newview/lltexturecache.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra') diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp index d4fc6f3de2..882378d7e5 100644 --- a/indra/newview/lltexturecache.cpp +++ b/indra/newview/lltexturecache.cpp @@ -1645,6 +1645,12 @@ void LLTextureCache::purgeAllTextures(bool purge_directories) { gDirUtilp->deleteFilesInDir(dirname, mask); } +#if LL_WINDOWS + // Texture cache can be large and can take a while to remove + // assure OS that processes is alive and not hanging + MSG msg; + PeekMessage(&msg, 0, 0, 0, PM_NOREMOVE | PM_NOYIELD); +#endif } gDirUtilp->deleteFilesInDir(mTexturesDirName, mask); // headers, fast cache if (purge_directories) -- cgit v1.2.3