Enable the debug setting "NonvisibleObjectsInMemoryTime"

meow-7.2.2
Xiaohong Bao 2013-10-09 21:42:53 -06:00
parent 80dfbbaacd
commit c8067cfd97
2 changed files with 18 additions and 13 deletions

View File

@ -4753,18 +4753,7 @@
<string>Boolean</string>
<key>Value</key>
<integer>0</integer>
</map>
<key>InvisibleObjectsInMemoryTime</key>
<map>
<key>Comment</key>
<string>Number of frames invisible objects stay in memory before being removed. 0 means never to remove.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>U32</string>
<key>Value</key>
<integer>64</integer>
</map>
</map>
<key>JoystickAvatarEnabled</key>
<map>
<key>Comment</key>
@ -6581,6 +6570,17 @@
<key>Value</key>
<integer>0</integer>
</map>
<key>NonvisibleObjectsInMemoryTime</key>
<map>
<key>Comment</key>
<string>Number of frames non-visible objects stay in memory before being removed. 0 means never to remove.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>U32</string>
<key>Value</key>
<integer>64</integer>
</map>
<key>NoPreload</key>
<map>
<key>Comment</key>

View File

@ -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;
}