diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2013-10-09 21:42:53 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2013-10-09 21:42:53 -0600 |
commit | c8067cfd9708fe30659b1f07f6d035508bea3033 (patch) | |
tree | 2a5c1b50e0987e552a068f70dc1b7a57ddb25ec3 /indra/newview/llvocache.cpp | |
parent | 80dfbbaacd82179e54163ed48b1bc444e3becbd5 (diff) |
Enable the debug setting "NonvisibleObjectsInMemoryTime"
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rwxr-xr-x | indra/newview/llvocache.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index 0466dea39d..f16f3507c3 100755 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -347,7 +347,7 @@ void LLVOCacheEntry::updateDebugSettings() static LLCachedControl<F32> squared_back_angle(gSavedSettings,"BackProjectionAngleSquared"); //the number of frames invisible objects stay in memory - static LLCachedControl<U32> inv_obj_time(gSavedSettings,"InvisibleObjectsInMemoryTime"); + static LLCachedControl<U32> inv_obj_time(gSavedSettings,"NonvisibleObjectsInMemoryTime"); sMinFrameRange = inv_obj_time - 1; //make 0 to be the maximum @@ -374,6 +374,11 @@ bool LLVOCacheEntry::isRecentlyVisible() const vis = (rad * rad / mSceneContrib < sBackDistanceSquared); } + if(!vis) + { + vis = (getVisible() + sMinFrameRange > LLViewerOctreeEntryData::getCurrentFrame()); + } + return vis; } |