minor LodQuadTree optimization

This commit is contained in:
James Seibel
2026-05-30 11:17:39 -05:00
parent 95e4db2998
commit ad9092c45c
@@ -185,7 +185,13 @@ public class LodQuadTree extends QuadTree<LodRenderSection> implements IDebugRen
this.enabledRenderSectionLock.lock(); this.enabledRenderSectionLock.lock();
tempProcessNodeList.clear(); tempProcessNodeList.clear();
tempProcessNodeList.addAll(this.enabledSections);
// manual add and loop to reduce GC pressure due to addAll() doing unnecessary
// array copies
for (int i = 0; i < this.enabledSections.size(); i++)
{
tempProcessNodeList.add(this.enabledSections.get(i));
}
} }
finally finally
{ {