Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change ECS iteration #2

Closed
englercj opened this issue Aug 22, 2016 · 0 comments
Closed

Change ECS iteration #2

englercj opened this issue Aug 22, 2016 · 0 comments

Comments

@englercj
Copy link
Contributor

Currently iteration is:

  • For each system, update all entities in system

This unfortunately means entities of some system may always render after another dur to system priority reguardless of the entity z index.

Because of that, I think entity should have some sorting property (zIndex, or renderPriority, or something) and the iteration should be:

  • For each entity, apply each system to entity.

Obviously still only applying the systems that the entity is eligible for. One caveat being that for batch-based systems, this means we likely would need to bring back ObjectRenderer and the associated state :(

@englercj englercj added the Bug label Aug 22, 2016
@englercj englercj added this to the v0.1.0 milestone Aug 22, 2016
englercj added a commit to Fae/ecs that referenced this issue Aug 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant