diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2013-10-29 22:46:07 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2013-10-29 22:46:07 -0600 |
commit | 8582cd06ba4ec417efe9dc24971fe7011309a51c (patch) | |
tree | 4759cebc724dd064706daaf84854c775b544b6de | |
parent | d9d696de388ab7ce0626a18ce461ce7e84b86793 (diff) |
fix to decrease number of triangles rendered per frame
-rw-r--r-- | indra/newview/llvieweroctree.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llvieweroctree.cpp b/indra/newview/llvieweroctree.cpp index 3646133e91..1b3d7da90d 100644 --- a/indra/newview/llvieweroctree.cpp +++ b/indra/newview/llvieweroctree.cpp @@ -746,7 +746,11 @@ BOOL LLViewerOctreeGroup::isRecentlyVisible() const void LLViewerOctreeGroup::setVisible() { mVisible[LLViewerCamera::sCurCameraID] = LLViewerOctreeEntryData::getCurrentFrame(); - mAnyVisible = LLViewerOctreeEntryData::getCurrentFrame(); + + if(LLViewerCamera::sCurCameraID < LLViewerCamera::CAMERA_WATER0) + { + mAnyVisible = LLViewerOctreeEntryData::getCurrentFrame(); + } } void LLViewerOctreeGroup::checkStates() |