Skip to content

ECS: Query Performance Improvements on Archetype Update #9

Description

@myluki2000

Currently, when the list of existing archetypes changes, each currently existing Query on the ECS completely recalculates its list of matching archetypes the next time it is executed.

This is unnecessary. Instead, the Ecs.ArchetypeListChanged event should contain EventArgs which tell the handler which Archetypes were added/removed, so the Query can specifically check if these Archetypes are relevant for it when updating, instead of having to iterate through ALL Archetypes of the ECS.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions