-
Notifications
You must be signed in to change notification settings - Fork 109
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
[Bug] Possible regression with @EntityId
on IntBag
#574
Comments
I'll take a closer look tomorrow, but I think it's intentional. IIrc - only clean-up/callback when entity has been purged by the EntityManager, otherwise entities may be evicted prematurely (ie; "some" time before EntiySubcriptions have fired) |
Purges are after each system invocation right? System1->purge->System2->etc. Maybe I'm doing something wrong. As it is now, when I delete a referenced entity in System1, the |
Ah, sorry, purge as the final step in public void process() {
invocationStrategy.process();
IntBag pendingPurge = batchProcessor.getPendingPurge();
if (!pendingPurge.isEmpty()) {
cm.clean(pendingPurge);
em.clean(pendingPurge);
batchProcessor.purgeComponents();
}
} |
Ouch. Yeah, sounds like a bug with impl. |
Maybe |
Yeah, I need to brush up on the inner workings as well... (a testament for the need for good documentation!) |
@EntityId
on IntBag
Delaying this one release for when we have more breaking changes (gdx 1.10 etc). |
@junkdog Another one after running the debugger ;)
Observed
@EntityId
with CHECK_SOURCE_AND_TARGETS cleans up deleted entities from ints and IntBags, but only on EntityLinkManager proces.Expected
@EntityId
with CHECK_SOURCE_AND_TARGETS cleans up deleted entities, each time a system finishes processing.Is this a regression or is it intended? What use is CHECK_SOURCE?
Tests for reproducing the above:
https://gist.github.com/DaanVanYperen/507888e83d9b1ff9d35810f671595360
The text was updated successfully, but these errors were encountered: