diff options
author | Jacek Antonelli | 2009-06-13 13:17:14 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-06-13 13:17:20 -0500 |
commit | 0517fe4322443bdc317f8185590a63134e3f8394 (patch) | |
tree | 942c9c26d0792accc928010a113d123c5409659b /linden/indra/newview/pipeline.cpp | |
parent | Second Life viewer sources 1.23.2-RC (diff) | |
download | meta-impy-0517fe4322443bdc317f8185590a63134e3f8394.zip meta-impy-0517fe4322443bdc317f8185590a63134e3f8394.tar.gz meta-impy-0517fe4322443bdc317f8185590a63134e3f8394.tar.bz2 meta-impy-0517fe4322443bdc317f8185590a63134e3f8394.tar.xz |
Second Life viewer sources 1.23.3-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/pipeline.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/linden/indra/newview/pipeline.cpp b/linden/indra/newview/pipeline.cpp index 8dec9b9..ebf2f91 100644 --- a/linden/indra/newview/pipeline.cpp +++ b/linden/indra/newview/pipeline.cpp | |||
@@ -1945,7 +1945,8 @@ void LLPipeline::stateSort(LLSpatialBridge* bridge, LLCamera& camera) | |||
1945 | LLMemType mt(LLMemType::MTYPE_PIPELINE); | 1945 | LLMemType mt(LLMemType::MTYPE_PIPELINE); |
1946 | if (!sSkipUpdate && bridge->getSpatialGroup()->changeLOD()) | 1946 | if (!sSkipUpdate && bridge->getSpatialGroup()->changeLOD()) |
1947 | { | 1947 | { |
1948 | bridge->updateDistance(camera); | 1948 | bool force_update = false; |
1949 | bridge->updateDistance(camera, force_update); | ||
1949 | } | 1950 | } |
1950 | } | 1951 | } |
1951 | 1952 | ||
@@ -2006,11 +2007,13 @@ void LLPipeline::stateSort(LLDrawable* drawablep, LLCamera& camera) | |||
2006 | { | 2007 | { |
2007 | if (!drawablep->isActive()) | 2008 | if (!drawablep->isActive()) |
2008 | { | 2009 | { |
2009 | drawablep->updateDistance(camera); | 2010 | bool force_update = false; |
2011 | drawablep->updateDistance(camera, force_update); | ||
2010 | } | 2012 | } |
2011 | else if (drawablep->isAvatar()) | 2013 | else if (drawablep->isAvatar()) |
2012 | { | 2014 | { |
2013 | drawablep->updateDistance(camera); // calls vobj->updateLOD() which calls LLVOAvatar::updateVisibility() | 2015 | bool force_update = false; |
2016 | drawablep->updateDistance(camera, force_update); // calls vobj->updateLOD() which calls LLVOAvatar::updateVisibility() | ||
2014 | } | 2017 | } |
2015 | } | 2018 | } |
2016 | } | 2019 | } |
@@ -2570,9 +2573,6 @@ void LLPipeline::renderGeom(LLCamera& camera, BOOL forceVBOUpdate) | |||
2570 | stop_glerror(); | 2573 | stop_glerror(); |
2571 | 2574 | ||
2572 | LLAppViewer::instance()->pingMainloopTimeout("Pipeline:RenderDrawPools"); | 2575 | LLAppViewer::instance()->pingMainloopTimeout("Pipeline:RenderDrawPools"); |
2573 | |||
2574 | LLAppViewer::instance()->pingMainloopTimeout("Pipeline:RenderForSelect"); | ||
2575 | LLAppViewer::instance()->pingMainloopTimeout("Pipeline:RenderDeferred"); | ||
2576 | for (pool_set_t::iterator iter = mPools.begin(); iter != mPools.end(); ++iter) | 2576 | for (pool_set_t::iterator iter = mPools.begin(); iter != mPools.end(); ++iter) |
2577 | { | 2577 | { |
2578 | LLDrawPool *poolp = *iter; | 2578 | LLDrawPool *poolp = *iter; |
@@ -2584,6 +2584,7 @@ void LLPipeline::renderGeom(LLCamera& camera, BOOL forceVBOUpdate) | |||
2584 | 2584 | ||
2585 | if (gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_PICKING)) | 2585 | if (gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_PICKING)) |
2586 | { | 2586 | { |
2587 | LLAppViewer::instance()->pingMainloopTimeout("Pipeline:RenderForSelect"); | ||
2587 | gObjectList.renderObjectsForSelect(camera, gViewerWindow->getVirtualWindowRect()); | 2588 | gObjectList.renderObjectsForSelect(camera, gViewerWindow->getVirtualWindowRect()); |
2588 | } | 2589 | } |
2589 | else | 2590 | else |
@@ -2747,6 +2748,7 @@ void LLPipeline::renderGeom(LLCamera& camera, BOOL forceVBOUpdate) | |||
2747 | 2748 | ||
2748 | void LLPipeline::renderGeomDeferred(LLCamera& camera) | 2749 | void LLPipeline::renderGeomDeferred(LLCamera& camera) |
2749 | { | 2750 | { |
2751 | LLAppViewer::instance()->pingMainloopTimeout("Pipeline:RenderGeomDeferred"); | ||
2750 | LLFastTimer t(LLFastTimer::FTM_RENDER_GEOMETRY); | 2752 | LLFastTimer t(LLFastTimer::FTM_RENDER_GEOMETRY); |
2751 | 2753 | ||
2752 | LLFastTimer t2(LLFastTimer::FTM_POOLS); | 2754 | LLFastTimer t2(LLFastTimer::FTM_POOLS); |