aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/pipeline.cpp')
-rw-r--r--linden/indra/newview/pipeline.cpp30
1 files changed, 14 insertions, 16 deletions
diff --git a/linden/indra/newview/pipeline.cpp b/linden/indra/newview/pipeline.cpp
index 8e42504..758455d 100644
--- a/linden/indra/newview/pipeline.cpp
+++ b/linden/indra/newview/pipeline.cpp
@@ -2,6 +2,8 @@
2 * @file pipeline.cpp 2 * @file pipeline.cpp
3 * @brief Rendering pipeline. 3 * @brief Rendering pipeline.
4 * 4 *
5 * $LicenseInfo:firstyear=2005&license=viewergpl$
6 *
5 * Copyright (c) 2005-2007, Linden Research, Inc. 7 * Copyright (c) 2005-2007, Linden Research, Inc.
6 * 8 *
7 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
@@ -24,6 +26,7 @@
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE. 28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
27 */ 30 */
28 31
29#include "llviewerprecompiledheaders.h" 32#include "llviewerprecompiledheaders.h"
@@ -745,13 +748,7 @@ U32 LLPipeline::addObject(LLViewerObject *vobj)
745 748
746void LLPipeline::resetFrameStats() 749void LLPipeline::resetFrameStats()
747{ 750{
748 mCompilesStat.addValue(sCompiles);
749 mLightingChangesStat.addValue(mLightingChanges);
750 mGeometryChangesStat.addValue(mGeometryChanges);
751 mTrianglesDrawnStat.addValue(mTrianglesDrawn/1000.f); 751 mTrianglesDrawnStat.addValue(mTrianglesDrawn/1000.f);
752 mVerticesRelitStat.addValue(mVerticesRelit);
753 mNumVisibleFacesStat.addValue(mNumVisibleFaces);
754 mNumVisibleDrawablesStat.addValue((S32)mVisibleList.size());
755 752
756 mTrianglesDrawn = 0; 753 mTrianglesDrawn = 0;
757 sCompiles = 0; 754 sCompiles = 0;
@@ -853,8 +850,6 @@ void LLPipeline::updateMove()
853 return; 850 return;
854 } 851 }
855 852
856 mMoveChangesStat.addValue((F32)mMovedList.size());
857
858 for (LLDrawable::drawable_set_t::iterator iter = mRetexturedList.begin(); 853 for (LLDrawable::drawable_set_t::iterator iter = mRetexturedList.begin();
859 iter != mRetexturedList.end(); ++iter) 854 iter != mRetexturedList.end(); ++iter)
860 { 855 {
@@ -1810,15 +1805,18 @@ void LLPipeline::postSort(LLCamera& camera)
1810 // Draw face highlights for selected faces. 1805 // Draw face highlights for selected faces.
1811 if (gSelectMgr->getTEMode()) 1806 if (gSelectMgr->getTEMode())
1812 { 1807 {
1813 LLViewerObject *vobjp; 1808 struct f : public LLSelectedTEFunctor
1814 S32 te;
1815 gSelectMgr->getSelection()->getFirstTE(&vobjp,&te);
1816
1817 while (vobjp)
1818 { 1809 {
1819 mSelectedFaces.push_back(vobjp->mDrawable->getFace(te)); 1810 virtual bool apply(LLViewerObject* object, S32 te)
1820 gSelectMgr->getSelection()->getNextTE(&vobjp,&te); 1811 {
1821 } 1812 if (object->mDrawable)
1813 {
1814 gPipeline.mSelectedFaces.push_back(object->mDrawable->getFace(te));
1815 }
1816 return true;
1817 }
1818 } func;
1819 gSelectMgr->getSelection()->applyToTEs(&func);
1822 } 1820 }
1823} 1821}
1824 1822