From dcb1155033b50e89f228c5d4624adac36e3327f9 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Sat, 13 Nov 2010 05:27:02 +0100 Subject: [PATCH] Idle update perf fix --- indra/newview/llagent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 127f0ddb6..121b300ce 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -2145,8 +2145,9 @@ U32 LLAgent::getControlFlags() //----------------------------------------------------------------------------- void LLAgent::setControlFlags(U32 mask) { + U32 old_flags = mControlFlags; mControlFlags |= mask; - mbFlagsDirty = TRUE; + mbFlagsDirty = mControlFlags ^ old_flags; }