SH-3493 FIX - removed a large number of completely unnecessary image cache clears, each of which then forced re-reading the same data from disk

meow-7.2.2
Brad Payne (Vir Linden) 2012-11-07 17:12:09 -05:00
parent f5a4c277cb
commit 0c834deb97
1 changed files with 2 additions and 8 deletions

View File

@ -7019,15 +7019,9 @@ void LLVOAvatar::cullAvatarsByPixelArea()
}
}
// runway - this doesn't detect gray/grey state.
// think we just need to be checking self av since it's the only
// one with lltexlayer stuff.
// runway - this doesn't really detect gray/grey state.
S32 grey_avatars = 0;
if (LLVOAvatar::areAllNearbyInstancesBaked(grey_avatars))
{
LLVOAvatar::deleteCachedImages(false);
}
else
if (!LLVOAvatar::areAllNearbyInstancesBaked(grey_avatars))
{
if (gFrameTimeSeconds != sUnbakedUpdateTime) // only update once per frame
{