summaryrefslogtreecommitdiff
path: root/indra/newview/llvocache.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-10-09 21:42:53 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-10-09 21:42:53 -0600
commitc8067cfd9708fe30659b1f07f6d035508bea3033 (patch)
tree2a5c1b50e0987e552a068f70dc1b7a57ddb25ec3 /indra/newview/llvocache.cpp
parent80dfbbaacd82179e54163ed48b1bc444e3becbd5 (diff)
Enable the debug setting "NonvisibleObjectsInMemoryTime"
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rwxr-xr-xindra/newview/llvocache.cpp7
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;
}