diff options
| author | Xiaohong Bao <bao@lindenlab.com> | 2013-07-29 10:15:10 -0600 |
|---|---|---|
| committer | Xiaohong Bao <bao@lindenlab.com> | 2013-07-29 10:15:10 -0600 |
| commit | 4cca9ba279f908f206fa5e32adccf1038f05cc7f (patch) | |
| tree | 9e50666f9c0c5e6340247ac3f7f627c1deef2b1b /indra/newview/llvocache.cpp | |
| parent | a9593367984f4411eedf8ee93178e24936ae1acb (diff) | |
fix for SH-4293: texture console takes a while to settle down on Interesting viewer.
Diffstat (limited to 'indra/newview/llvocache.cpp')
| -rwxr-xr-x | indra/newview/llvocache.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index 69c32db13e..6e0243e985 100755 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -219,18 +219,14 @@ void LLVOCacheEntry::setState(U32 state) if(getState() == ACTIVE) { - const S32 MIN_REAVTIVE_INTERVAL = 32; + const S32 MIN_REAVTIVE_INTERVAL = 128; U32 last_visible = getVisible(); setVisible(); - if(getVisible() - last_visible < MIN_REAVTIVE_INTERVAL + mMinFrameRange) + if(getVisible() - last_visible > MIN_REAVTIVE_INTERVAL + mMinFrameRange) { - mMinFrameRange = llmin(mMinFrameRange * 2, getInvisibleObjectsLiveTime() * 32); - } - else - { - mMinFrameRange = getInvisibleObjectsLiveTime(); //reset + mLastCameraUpdated = 0; //reset } } } |
