Hotspot elimination.

This commit is contained in:
Shyotl
2019-08-07 21:21:36 -05:00
parent 4091bf9da5
commit 21b1d5b52e
7 changed files with 32 additions and 24 deletions

View File

@@ -1269,6 +1269,7 @@ public:
group->destroyGL();
{OctreeGuard guard(group->getOctreeNode());
if (!mNoRebuild) // Singu note: No need to iterate if not rebuilding...
for (LLSpatialGroup::element_iter i = group->getDataBegin(); i != group->getDataEnd(); ++i)
{
LLDrawable* drawable = (LLDrawable*)(*i)->getDrawable();