diff options
author | Dave Parks <davep@lindenlab.com> | 2011-07-12 12:04:58 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-07-12 12:04:58 -0500 |
commit | ec0ee4f7c80bf5d32f50d2788545d629068f1cb1 (patch) | |
tree | 8dc574b4c18782dcf1b505b7d311b38a2d4aacfe /indra/newview | |
parent | 97ba99b3c04904633ec3e52f69602a11343e8b4c (diff) |
SH-2052 Fix for reported PE being too low when selecting more than 500 objects.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewerobjectlist.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp index f418a6137a..9d38954d8b 100644 --- a/indra/newview/llviewerobjectlist.cpp +++ b/indra/newview/llviewerobjectlist.cpp @@ -1071,10 +1071,12 @@ void LLViewerObjectList::fetchObjectCosts() LLSD id_list; U32 object_index = 0; + U32 count = 0; + for ( std::set<LLUUID>::iterator iter = mStaleObjectCost.begin(); iter != mStaleObjectCost.end(); - ++iter) + ) { // Check to see if a request for this object // has already been made. @@ -1084,13 +1086,15 @@ void LLViewerObjectList::fetchObjectCosts() mPendingObjectCost.insert(*iter); id_list[object_index++] = *iter; } - } - // id_list should now contain all - // requests in mStaleObjectCost before, so clear - // it now - mStaleObjectCost.clear(); + mStaleObjectCost.erase(iter++); + if (count++ >= 450) + { + break; + } + } + if ( id_list.size() > 0 ) { LLSD post_data = LLSD::emptyMap(); |