From 67ffa86817498028685e8cfb1bdc05d7ab204010 Mon Sep 17 00:00:00 2001 From: Xiaohong Bao Date: Thu, 14 Nov 2013 11:10:19 -0700 Subject: change the calculation method for object cache view culling. --- indra/newview/llvocache.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'indra') diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index 8c28d9e440..31722507ce 100755 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -654,29 +654,30 @@ public: virtual S32 frustumCheck(const LLViewerOctreeGroup* group) { -#if 1 +#if 0 S32 res = AABBInRegionFrustumGroupBounds(group); #else S32 res = AABBInRegionFrustumNoFarClipGroupBounds(group); -#endif if (res != 0) { res = llmin(res, AABBRegionSphereIntersectGroupExtents(group, mLocalShift)); } +#endif + return res; } virtual S32 frustumCheckObjects(const LLViewerOctreeGroup* group) { -#if 1 +#if 0 S32 res = AABBInRegionFrustumObjectBounds(group); #else S32 res = AABBInRegionFrustumNoFarClipObjectBounds(group); -#endif if (res != 0) { res = llmin(res, AABBRegionSphereIntersectObjectExtents(group, mLocalShift)); } +#endif if(res != 0) { -- cgit v1.2.3