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

Add a per-event entity cache #78

Open
GGAlanSmithee opened this issue Jul 26, 2018 · 0 comments
Open

Add a per-event entity cache #78

GGAlanSmithee opened this issue Jul 26, 2018 · 0 comments
Assignees
Milestone

Comments

@GGAlanSmithee
Copy link
Owner

Currently, there are ongoing changes to greatly simplify the API of the EntityManager and other classes. This has been done without affecting performance etc too much, but there are some places where it will be slower, such as when iterating entites.

To further mitigate the negative impacts of theese changes, we should add a per-event entity cache, much like we have per system. This would cache all entites which have the components that the event was registered on.

This will actually make events even easier to work with, and there would still be the option to iterate/access all entities if needed.

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