summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-06-19 18:08:39 -0500
committerDave Parks <davep@lindenlab.com>2012-06-19 18:08:39 -0500
commit029103133ebac7ee13f1af767f41b012d19a84f5 (patch)
treec531d0662f06b0bd721485cf28e3e40e1b1d0f3e /indra/newview/pipeline.cpp
parenta1d0d67e05c45bdc1a7a8bb0aad79772a2a94f6e (diff)
MAINT-794 Factor out a lot of CPU overhead around updating objects.
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index c195f0ea14..ebb28ff239 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -1843,6 +1843,10 @@ void LLPipeline::updateMovedList(LLDrawable::drawable_vector_t& moved_list)
drawablep->clearState(LLDrawable::EARLY_MOVE | LLDrawable::MOVE_UNDAMPED);
if (done)
{
+ if (drawablep->isRoot())
+ {
+ drawablep->makeStatic();
+ }
drawablep->clearState(LLDrawable::ON_MOVE_LIST);
if (drawablep->isState(LLDrawable::ANIMATED_CHILD))
{ //will likely not receive any future world matrix updates