Entity Component System (ECS) library for Elixir, offering a suite of features including: flexible queries with multiple filters, dynamic bidirectional relationships, versatile tagging capabilities, system event subscriptions, or asynchronous system execution.
For performance reasons, projections were implemented to run in parallel with the systems, on every frame.
However, this offers no guarantee on the state of the components, as some systems may have run already, while others did not.
The solution is to move the projections update at the end of the frame after all systems are executed.
also, the on_change callback should receive both the new projection state, but also the previous.
For performance reasons, projections were implemented to run in parallel with the systems, on every frame. However, this offers no guarantee on the state of the components, as some systems may have run already, while others did not.
The solution is to move the projections update at the end of the frame after all systems are executed.
also, the
on_change
callback should receive both the new projection state, but also the previous.