You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have an array of all bricks after voxelization, each brick knows its position in the array
Select randomly a brick of the array, process it
For each brick of the merge process take the last brick of the array, put it at the position of the removed brick, update the position cache. (To avoid overhead of removing elements and shifting all following elements)
Benefits:
Selects from bricks, not from voxels.
Does not select bricks that are already max. merged.
Selects in O(1).
Does not select from coordinate space, therefore always selects a brick.
Performance of select random improves over time, currently: decreases over time.
The text was updated successfully, but these errors were encountered:
Benefits:
The text was updated successfully, but these errors were encountered: