summaryrefslogtreecommitdiff
path: root/indra/newview/lltexturecache.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-07-21 20:52:15 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-07-21 20:52:54 +0300
commit6db39a6f1d3b290fd12ab8e96100ebb89713d8ea (patch)
tree2d2a6d6bcdb9d17dad6f00494c3ddc99a09a4ce1 /indra/newview/lltexturecache.cpp
parentd7b4a15a12b4097cc400317ac8e53e6135832196 (diff)
SL-17778 'Application not responding' popup while cleaning cache on startup
Diffstat (limited to 'indra/newview/lltexturecache.cpp')
-rw-r--r--indra/newview/lltexturecache.cpp6
1 files changed, 6 insertions, 0 deletions
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)