aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerimagelist.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewerimagelist.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/linden/indra/newview/llviewerimagelist.cpp b/linden/indra/newview/llviewerimagelist.cpp
index 5dbfab0..e48f6ae 100644
--- a/linden/indra/newview/llviewerimagelist.cpp
+++ b/linden/indra/newview/llviewerimagelist.cpp
@@ -500,10 +500,10 @@ void LLViewerImageList::updateImages(F32 max_time)
500{ 500{
501 sNumImagesStat.addValue(sNumImages); 501 sNumImagesStat.addValue(sNumImages);
502 sNumRawImagesStat.addValue(LLImageRaw::sRawImageCount); 502 sNumRawImagesStat.addValue(LLImageRaw::sRawImageCount);
503 sGLTexMemStat.addValue(LLImageGL::sGlobalTextureMemory/(1024.f*1024.f)); 503 sGLTexMemStat.addValue((F32)(LLImageGL::sGlobalTextureMemory >> 20));
504 sGLBoundMemStat.addValue(LLImageGL::sBoundTextureMemory/(1024.f*1024.f)); 504 sGLBoundMemStat.addValue((F32)(LLImageGL::sBoundTextureMemory >> 20));
505 sRawMemStat.addValue(LLImageRaw::sGlobalRawMemory/(1024.f*1024.f)); 505 sRawMemStat.addValue((F32)(LLImageRaw::sGlobalRawMemory >> 20));
506 sFormattedMemStat.addValue(LLImageFormatted::sGlobalFormattedMemory/(1024.f*1024.f)); 506 sFormattedMemStat.addValue((F32)(LLImageFormatted::sGlobalFormattedMemory >> 20));
507 507
508 updateImagesDecodePriorities(); 508 updateImagesDecodePriorities();
509 max_time -= updateImagesFetchTextures(max_time); 509 max_time -= updateImagesFetchTextures(max_time);
@@ -588,9 +588,12 @@ void LLViewerImageList::updateImagesDecodePriorities()
588 588
589 imagep->processTextureStats(); 589 imagep->processTextureStats();
590 F32 old_priority = imagep->getDecodePriority(); 590 F32 old_priority = imagep->getDecodePriority();
591 F32 old_priority_test = llmax(old_priority, 0.0f);
591 F32 decode_priority = imagep->calcDecodePriority(); 592 F32 decode_priority = imagep->calcDecodePriority();
593 F32 decode_priority_test = llmax(decode_priority, 0.0f);
592 // Ignore < 20% difference 594 // Ignore < 20% difference
593 if ((decode_priority < old_priority * .8f || decode_priority > old_priority * 1.25f)) 595 if ((decode_priority_test < old_priority_test * .8f) ||
596 (decode_priority_test > old_priority_test * 1.25f))
594 { 597 {
595 removeImageFromList(imagep); 598 removeImageFromList(imagep);
596 imagep->setDecodePriority(decode_priority); 599 imagep->setDecodePriority(decode_priority);