-
-
Notifications
You must be signed in to change notification settings - Fork 36.2k
Closed
Description
Description
When I call deleteGeometry the instance is marked as inactive
But how can I use this already allocated space in the buffers again?
addGeometrywill not re-use available space ad the moment- calling
setGeometrywill not activate the instance again
Solution
Keep track of freed space / search all inactive holes and try to re-use it when calling addGeometry
Alternatives
- User code keeps track of freed space and
setGeometrywill also setactive[index] true setVisibleAtalso setsactiveto true again- add
setActiveAt+ an API to query available space at index x (could be a generator method or some mechanism to prevent accidental mutation of internal state)
Additional context
No response