summaryrefslogtreecommitdiff
path: root/indra/newview/llvocache.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-11-06 10:18:06 -0700
committerXiaohong Bao <bao@lindenlab.com>2013-11-06 10:18:06 -0700
commit2cb781705e56e31e11c4c37891b2ac86326aa411 (patch)
treeb191b7ca73b2b0e866e34406fb1bc09ac1d82a68 /indra/newview/llvocache.cpp
parent22beac78135e23ede5002f4125e2c3006bcad7f2 (diff)
remove some unused debug settings.
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rwxr-xr-xindra/newview/llvocache.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp
index d0061fc777..2ff2d0f341 100755
--- a/indra/newview/llvocache.cpp
+++ b/indra/newview/llvocache.cpp
@@ -35,8 +35,6 @@
#include "pipeline.h"
#include "llagentcamera.h"
-F32 LLVOCacheEntry::sBackDistanceSquared = 0.f;
-F32 LLVOCacheEntry::sBackAngleTanSquared = 0.f;
U32 LLVOCacheEntry::sMinFrameRange = 0;
BOOL LLVOCachePartition::sNeedsOcclusionCheck = FALSE;
@@ -341,21 +339,10 @@ BOOL LLVOCacheEntry::writeToFile(LLAPRFile* apr_file) const
//static
void LLVOCacheEntry::updateDebugSettings()
{
- //distance to keep objects = back_dist_factor * draw_distance
- static LLCachedControl<F32> back_dist_factor(gSavedSettings,"BackDistanceFactor");
-
- //squared tan(projection angle of the bbox), default is 10 (degree)
- static LLCachedControl<F32> squared_back_angle(gSavedSettings,"BackProjectionAngleSquared");
-
//the number of frames invisible objects stay in memory
static LLCachedControl<U32> inv_obj_time(gSavedSettings,"NonvisibleObjectsInMemoryTime");
sMinFrameRange = inv_obj_time - 1; //make 0 to be the maximum
-
- sBackDistanceSquared = back_dist_factor * gAgentCamera.mDrawDistance;
- sBackDistanceSquared *= sBackDistanceSquared;
-
- sBackAngleTanSquared = squared_back_angle;
}
//static