Skip to content

feat(engine): Entity id versioning #11

@0ffz

Description

@0ffz

Reserve some entity id bits for versioning. An entity reference will mask these bits to check whether the entity is 'alive', while inside the engine the same underlying id is reused.

Flecs uses 16 bits that would otherwise be masked by relations for a version id. Notably, this means for versioning to work correctly any relations referencing this entity should be removed when it its removed (to avoid needing to store entity version on relations).

Resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions