Skip to content

Optimize unloading of prims #2462

@cosmic-linden

Description

@cosmic-linden

Optimize LLMeshRepository::unregisterMesh.

LLViewerObjectList::cleanDeadObjects takes a long time to run, especially during shutdown, but also when moving around the world, leading to intermittent slow frames. LLMeshRepository::unregisterMesh was found to be a bottleneck for this function.

Test plan

Due to the nature of the performance fix, regressions are not expected. There is a small chance of increased crashes with LLMeshRepository in the stack trace, most noticably on shutdown.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions