Description
When I call deleteGeometry the instance is marked as inactive
But how can I use this already allocated space in the buffers again?
addGeometry will not re-use available space ad the moment
- calling
setGeometry will 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
setGeometry will also set active[index] true
setVisibleAt also sets active to 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
Description
When I call
deleteGeometrythe instance is marked as inactiveBut how can I use this already allocated space in the buffers again?
addGeometrywill not re-use available space ad the momentsetGeometrywill not activate the instance againSolution
Keep track of freed space / search all inactive holes and try to re-use it when calling
addGeometryAlternatives
setGeometrywill also setactive[index] truesetVisibleAtalso setsactiveto true againsetActiveAt+ 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