Fix fast cache ignoring its time constraint (#4237)
parent
2c35cddddd
commit
4c529c85d1
|
|
@ -1197,6 +1197,8 @@ F32 LLViewerTextureList::updateImagesLoadingFastCache(F32 max_time)
|
|||
enditer = iter;
|
||||
LLViewerFetchedTexture *imagep = *curiter;
|
||||
imagep->loadFromFastCache();
|
||||
if (timer.getElapsedTimeF32() > max_time)
|
||||
break;
|
||||
}
|
||||
mFastCacheList.erase(mFastCacheList.begin(), enditer);
|
||||
return timer.getElapsedTimeF32();
|
||||
|
|
@ -1308,7 +1310,7 @@ void LLViewerTextureList::decodeAllImages(F32 max_time)
|
|||
LLTimer timer;
|
||||
|
||||
//loading from fast cache
|
||||
updateImagesLoadingFastCache(max_time);
|
||||
max_time -= updateImagesLoadingFastCache(max_time);
|
||||
|
||||
// Update texture stats and priorities
|
||||
std::vector<LLPointer<LLViewerFetchedTexture> > image_list;
|
||||
|
|
|
|||
Loading…
Reference in New Issue