Closed Megafunk closed 2 years ago
-What about observers? Observers do indeed get called immediately! However, they are no called for single entity creation or archetype change. Deferred commands and spawners will call observers because they call the batched versions.
Another question... When should we flush our deferred actions? It seems prudent to do so on "event" things.
Observers are called on deferred actions being flushed along with everything else that changes entities. So, it's up to when the flush happens as of now.
Let's say we add a fragment like "hit" to a projectile entity. Can queries see that "hit" fragment this frame?
[x] If so, does it restrict to gamethread only if we want same-frame query response?
[x] What about observers?
[x] Are some types of fragments same-frame query enabled and not others?