diff options
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rwxr-xr-x | indra/newview/llvocache.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index 6e0243e985..d1c27edce7 100755 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -219,15 +219,21 @@ void LLVOCacheEntry::setState(U32 state) if(getState() == ACTIVE) { - const S32 MIN_REAVTIVE_INTERVAL = 128; + const S32 MIN_INTERVAL = 64 + mMinFrameRange; U32 last_visible = getVisible(); setVisible(); - if(getVisible() - last_visible > MIN_REAVTIVE_INTERVAL + mMinFrameRange) + U32 cur_visible = getVisible(); + if(cur_visible - last_visible > MIN_INTERVAL || + cur_visible < MIN_INTERVAL) { mLastCameraUpdated = 0; //reset } + else + { + mLastCameraUpdated = LLViewerRegion::sLastCameraUpdated; + } } } |