matter icon indicating copy to clipboard operation
matter copied to clipboard

Command buffer should batch archetype moves

Open memorycode opened this issue 1 year ago • 0 comments

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.

memorycode avatar Jul 27 '24 19:07 memorycode