JaimeGensler / thyseus

An archetypal Entity Component System, built entirely in Typescript
MIT License
74 stars 3 forks source link

[FEAT] Don't enqueue commands for despawned entities #18

Closed JaimeGensler closed 1 year ago

JaimeGensler commented 1 year ago

Currently we enqueue all commands, even if they're for entities we (could) know are despawned. To save on space, we should ignore these commands.

Technically this could remove the conditional check for an entity being alive before moving tables, but we'll likely introduce immediate Entity creation/deletion methods on World, so this should probably remain in place.