Closed delaneyj closed 10 months ago
Is this different from RemoveX
?
https://github.com/zdandoh/ecs/blob/master/codegen/ecs/component.go.templ#L34
Lol, the codegen is tiny and I missed it... though the setting to zero isn't needed since when you add you are providing a new one
Yep, seems ok to remove. Done
Had to re-add the zeroing, if you don't zero you don't clear out any pointers that might have been heap allocated by the user and they can't be GC'd.
:point_up:
It seems like
Would be basically the right format and fast since you are using "dumb" slices as the backing store