-
-
Notifications
You must be signed in to change notification settings - Fork 13
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 the ability to buffer commands #88
Conversation
CI will pass with #89 |
I am unsure, so I didn't mention anything in review, but it seems like we fail at tracking the correct size of the world in some places. Can you double check this? And do we have tests for this? |
I've checked and I believe everything is fine - I've added a test for this in deferred mode. |
Proposed changes
This PR adds an optional command buffer to Matter's registry. The command buffer caches insertions, removals, spawns, and despawns until explicitly told to apply them. It is enabled by default if you use a
Loop
and will commit changes between systems.The old system that prevented iterator invalidation has been replaced with this, but that is not the only motivation for a command buffer.
Related issues
TODO
Additional comments
This is a fairly breaking change even if you don't elect to use it. Educational materials will be important