summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-07-21 17:29:58 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-07-21 22:42:36 +0300
commit413a42e3ef89a6394265f7ccb4531385da552eda (patch)
tree9a836b71cbfbdd7bf1965f0ad63140403b41f7e0
parentbaf6a330f51e9521625e265dafa4766cc9236a60 (diff)
#6014 Simplify killAllObjects
-rw-r--r--indra/newview/llviewerobjectlist.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp
index f027a1eaa0..31b2108cf0 100644
--- a/indra/newview/llviewerobjectlist.cpp
+++ b/indra/newview/llviewerobjectlist.cpp
@@ -1379,6 +1379,7 @@ void LLViewerObjectList::killObjects(LLViewerRegion *regionp)
void LLViewerObjectList::killAllObjects()
{
+ LL_PROFILE_ZONE_SCOPED;
// Used only on global destruction.
// Mass cleanup to not clear lists one item at a time
@@ -1401,7 +1402,10 @@ void LLViewerObjectList::killAllObjects()
gMeshRepo.unregisterAllMeshes();
- cleanDeadObjects(false);
+ // Direct clear instead of cleanDeadObjects - all objects are already dead
+ mObjects.clear();
+ mDeadObjects.clear();
+ mNumDeadObjects = 0;
if(!mObjects.empty())
{