Skip to content
Daan van Yperen edited this page May 30, 2019 · 3 revisions

Provides a more in depth guide for the odb lifecycles.

World lifecycle

world.process iterates over each system, subscriptions are only updated right before and after a system runs, and frozen while a system processes.

Some lifecycle events are postponed to the end of world.process (see entity deletion lifecycle below).

Entity deletion lifecycle

When you delete an entity, it will still exist for the engine while the world processes. However, between each system entity subscriptions are updated and this effectively hides the entity from other systems still to be processed.

Accessing entities that have been deleted and are still active is discouraged as subscription listeners might alter an entities composition upon deletion (release components etc).

Clone this wiki locally