matter
matter copied to clipboard
Command buffer should batch archetype moves
Current behavior
The current implementation of the command buffer in https://github.com/matter-ecs/matter/pull/88 loops through each command one-by-one and transitions archetypes after each command.
Proposed improvement
We should not transition the archetype for an entity until we are sure there are no more commands that would impact its archetype because it's unnecessary work.