Structural Commits

Tatuy separates ordinary simulation from changes to ECS structure.

Examples of structural work:

create entity
destroy entity
add component type
remove component type

Barriers

PRE_SIMULATION
    ↓
PRE_SIM_COMMIT
    ↓
SIMULATION
    ↓
POST_SIMULATION
    ↓
POST_SIM_COMMIT

SceneStructuralCommitter

The scene committer currently combines:

StructuralCommandBuffer
LifecycleCommitter

The first handles queued component-structure operations.

The second handles entity lifecycle.

Why?

Systems should be able to iterate over the world without arbitrary mid-query changes making execution dependent on storage details.

The semantic contract is:

request change
    ↓
continue current phase
    ↓
known barrier
    ↓
apply change