From 2cb781705e56e31e11c4c37891b2ac86326aa411 Mon Sep 17 00:00:00 2001 From: Xiaohong Bao Date: Wed, 6 Nov 2013 10:18:06 -0700 Subject: remove some unused debug settings. --- indra/newview/app_settings/settings.xml | 23 ----------------------- indra/newview/llvocache.cpp | 13 ------------- indra/newview/llvocache.h | 3 --- 3 files changed, 39 deletions(-) (limited to 'indra') diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 04be4e5f00..db7be5abc4 100755 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -731,18 +731,6 @@ Value 0 - - BackDistanceFactor - - Comment - Keep invisible objects in memory which are in the distance range (the factor * draw_distance) to the camera - Persist - 1 - Type - F32 - Value - 0.125 - BackgroundYieldTime Comment @@ -754,17 +742,6 @@ Value 40 - BackProjectionAngleSquared - - Comment - squared tan(object bbox projection angle). that of invisible objects greater than this threshold are kept in memory - Persist - 1 - Type - F32 - Value - 0.0311 - BackShpereCullingRadius Comment 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 back_dist_factor(gSavedSettings,"BackDistanceFactor"); - - //squared tan(projection angle of the bbox), default is 10 (degree) - static LLCachedControl squared_back_angle(gSavedSettings,"BackProjectionAngleSquared"); - //the number of frames invisible objects stay in memory static LLCachedControl 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 diff --git a/indra/newview/llvocache.h b/indra/newview/llvocache.h index 09766b297e..af97f9fdce 100755 --- a/indra/newview/llvocache.h +++ b/indra/newview/llvocache.h @@ -153,9 +153,6 @@ protected: BOOL mTouched; //if set, this entry is valid, otherwise it is invalid. - static F32 sBackDistanceSquared; - static F32 sBackAngleTanSquared; - public: static U32 sMinFrameRange; }; -- cgit v1.2.3