SL-17778 'Application not responding' popup while cleaning cache on startup

meow-7.2.2
Andrey Kleshchev 2022-07-21 20:52:15 +03:00
parent d7b4a15a12
commit 6db39a6f1d
1 changed files with 6 additions and 0 deletions

View File

@ -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)