Deleting an entity is not a trivial operation, when an entity is used as a component, it propagates deletion of archetypes and its contained entities. It also needs to set up the entity to be recycled.
Sometimes, you just want the entity to not get matched against queries again and want an easy way to deallocate its components' memory.
Deleting an entity is not a trivial operation, when an entity is used as a component, it propagates deletion of archetypes and its contained entities. It also needs to set up the entity to be recycled.
Sometimes, you just want the entity to not get matched against queries again and want an easy way to deallocate its components' memory.