summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-11-14 11:10:19 -0700
committerXiaohong Bao <bao@lindenlab.com>2013-11-14 11:10:19 -0700
commit67ffa86817498028685e8cfb1bdc05d7ab204010 (patch)
tree28bddfef68713713e0da1af7e937a888e3b7dd92 /indra
parentd41110de20f17f56c0b7b4e62ddfa930cc707ecc (diff)
change the calculation method for object cache view culling.
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llvocache.cpp9
1 files changed, 5 insertions, 4 deletions
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)
{