diff options
author | Nicholaz Beresford | 2008-09-16 02:08:45 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-16 02:09:36 -0500 |
commit | a6a2c8a80af57b99e08da36c4e64b0a0b868636f (patch) | |
tree | 091cc51f0a96214cf404ece9a074a973051b6f78 /linden/indra/newview/lltexturecache.h | |
parent | Created ChangeLog.txt. (diff) | |
download | meta-impy-a6a2c8a80af57b99e08da36c4e64b0a0b868636f.zip meta-impy-a6a2c8a80af57b99e08da36c4e64b0a0b868636f.tar.gz meta-impy-a6a2c8a80af57b99e08da36c4e64b0a0b868636f.tar.bz2 meta-impy-a6a2c8a80af57b99e08da36c4e64b0a0b868636f.tar.xz |
Applied VWR-3878: Purging cache textures causes viewer to pause
for many seconds, with heavy disk activity.
Diffstat (limited to 'linden/indra/newview/lltexturecache.h')
-rw-r--r-- | linden/indra/newview/lltexturecache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linden/indra/newview/lltexturecache.h b/linden/indra/newview/lltexturecache.h index f083dd0..e15a88b 100644 --- a/linden/indra/newview/lltexturecache.h +++ b/linden/indra/newview/lltexturecache.h | |||
@@ -119,6 +119,7 @@ private: | |||
119 | void readHeaderCache(apr_pool_t* poolp = NULL); | 119 | void readHeaderCache(apr_pool_t* poolp = NULL); |
120 | void purgeAllTextures(bool purge_directories); | 120 | void purgeAllTextures(bool purge_directories); |
121 | void purgeTextures(bool validate); | 121 | void purgeTextures(bool validate); |
122 | void purgeTextureFilesTimeSliced(BOOL force_all = FALSE); | ||
122 | S32 getHeaderCacheEntry(const LLUUID& id, bool touch, S32* imagesize = NULL); | 123 | S32 getHeaderCacheEntry(const LLUUID& id, bool touch, S32* imagesize = NULL); |
123 | bool removeHeaderCacheEntry(const LLUUID& id); | 124 | bool removeHeaderCacheEntry(const LLUUID& id); |
124 | void lockHeaders() { mHeaderMutex.lock(); } | 125 | void lockHeaders() { mHeaderMutex.lock(); } |
@@ -140,6 +141,10 @@ private: | |||
140 | 141 | ||
141 | typedef std::vector<std::pair<LLPointer<Responder>, bool> > responder_list_t; | 142 | typedef std::vector<std::pair<LLPointer<Responder>, bool> > responder_list_t; |
142 | responder_list_t mCompletedList; | 143 | responder_list_t mCompletedList; |
144 | |||
145 | typedef std::list<std::string> filename_list_t; | ||
146 | filename_list_t mFilesToDelete; | ||
147 | LLTimer mTimeLastFileDelete; | ||
143 | 148 | ||
144 | BOOL mReadOnly; | 149 | BOOL mReadOnly; |
145 | 150 | ||