diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2013-11-11 14:50:32 -0700 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2013-11-11 14:50:32 -0700 |
commit | 83c2098fb99c4a4d33dfa5f4a71ab64ca39b547f (patch) | |
tree | 04bfcdd3da3da94cc667ab6fae23e80b6c05988c /indra/newview/llvocache.h | |
parent | d71cafa4bcecb311bce626a15dd185e4750994ea (diff) |
fix for SH-4607: Create new object cache tuning parameters
Diffstat (limited to 'indra/newview/llvocache.h')
-rwxr-xr-x | indra/newview/llvocache.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/indra/newview/llvocache.h b/indra/newview/llvocache.h index af97f9fdce..9d851288b4 100755 --- a/indra/newview/llvocache.h +++ b/indra/newview/llvocache.h @@ -125,7 +125,7 @@ public: U32 getUpdateFlags() const {return mUpdateFlags;} static void updateDebugSettings(); - static F32 getSquaredObjectScreenAreaThreshold(); + static F32 getSquaredPixelThreshold(bool is_front); private: void updateParentBoundingInfo(const LLVOCacheEntry* child); @@ -154,7 +154,11 @@ protected: BOOL mTouched; //if set, this entry is valid, otherwise it is invalid. public: - static U32 sMinFrameRange; + static U32 sMinFrameRange; + static F32 sNearRadiusSquared; + static F32 sRearFarRadius; + static F32 sFrontPixelThreshold; + static F32 sRearPixelThreshold; }; class LLVOCacheGroup : public LLOcclusionCullingGroup @@ -184,13 +188,16 @@ public: void setCullHistory(BOOL has_new_object); + bool isFrontCull() const {return mFrontCull;} + private: - void selectBackObjects(LLCamera &camera, F32 back_sphere_radius, F32 projection_area_cutoff); //select objects behind camera. + void selectBackObjects(LLCamera &camera, F32 projection_area_cutoff); //select objects behind camera. public: static BOOL sNeedsOcclusionCheck; private: + BOOL mFrontCull; //the view frustum cull if set, otherwise is back sphere cull. U32 mCullHistory; U32 mCulledTime[LLViewerCamera::NUM_CAMERAS]; std::set<LLVOCacheGroup*> mOccludedGroups; |