was trying to optimize our AsyncApplyParticlePendingData() as it is taking to much and noticed this.
bool GetAsBoundsArray(TArray<TAABB<T, 3>>& AllBounds, int32 NodeIdx, int32 ParentNode, TAABB<T, 3>& Bounds) { if (Nodes[NodeIdx].bLeaf) { AllBounds.Add(Bounds); return false; } else { GetAsBoundsArray(AllBounds, Nodes[NodeIdx].ChildrenNodes[0], NodeIdx, Nodes[NodeIdx].ChildrenBounds[0]); // ---> this line also accesses ChildrenBounds[0] GetAsBoundsArray(AllBounds, Nodes[NodeIdx].ChildrenNodes[1], NodeIdx, Nodes[NodeIdx].ChildrenBounds[0]); } return true; }