From 3cb64c5038b7cde8bd44ec3a029d477e415085ee Mon Sep 17 00:00:00 2001 From: Richard Linden Date: Tue, 3 Dec 2013 15:52:36 -0800 Subject: SH-4606 FIX Interesting: Small objects do not load until they are very close. changed culling to use inverse distance to calculate solid angle, not distance squared --- indra/llcommon/lltracethreadrecorder.cpp | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'indra/llcommon') diff --git a/indra/llcommon/lltracethreadrecorder.cpp b/indra/llcommon/lltracethreadrecorder.cpp index aec36ef2c4..d62fabe3df 100644 --- a/indra/llcommon/lltracethreadrecorder.cpp +++ b/indra/llcommon/lltracethreadrecorder.cpp @@ -130,7 +130,6 @@ TimeBlockTreeNode* ThreadRecorder::getTimeBlockTreeNode( S32 index ) return NULL; } - AccumulatorBufferGroup* ThreadRecorder::activate( AccumulatorBufferGroup* recording) { ActiveRecording* active_recording = new ActiveRecording(recording); @@ -215,8 +214,7 @@ void ThreadRecorder::deactivate( AccumulatorBufferGroup* recording ) ThreadRecorder::ActiveRecording::ActiveRecording( AccumulatorBufferGroup* target ) : mTargetRecording(target) -{ -} +{} void ThreadRecorder::ActiveRecording::movePartialToTarget() { @@ -238,21 +236,7 @@ void ThreadRecorder::addChildRecorder( class ThreadRecorder* child ) void ThreadRecorder::removeChildRecorder( class ThreadRecorder* child ) { { LLMutexLock lock(&mChildListMutex); - for (child_thread_recorder_list_t::iterator it = mChildThreadRecorders.begin(), end_it = mChildThreadRecorders.end(); - it != end_it; - ++it) - { - if ((*it) == child) - { - // FIXME: this won't do any good, as the child stores the "pushed" values internally - // and it is in the process of being deleted. - // We need a way to finalize the stats from the outgoing thread, but the storage - // for those stats needs to be outside the child's thread recorder - //(*it)->pushToParent(); - mChildThreadRecorders.erase(it); - break; - } - } + mChildThreadRecorders.remove(child); } } @@ -316,5 +300,4 @@ void set_thread_recorder( ThreadRecorder* recorder ) get_thread_recorder_ptr() = recorder; } - } -- cgit v1.2.3