-
Notifications
You must be signed in to change notification settings - Fork 272
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
Remove systems if their parent entity is removed #2232
Commits on Jul 9, 2024
-
Remove systems if their parent entity is removed
This commit tries to address #2217. In particular if a user despawns an entity, the associated plugin gets removed. This should prevent issues like #2165. TBH I'm not sure if this is the right way forward as a system should technically be able to access any entity in a traditional ECS. I also recognize that there may be some performance impact. I will need to quantify this. Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 33f47e8 - Browse repository at this point
Copy the full SHA 33f47e8View commit details -
Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b932354 - Browse repository at this point
Copy the full SHA b932354View commit details -
Reduce performace impact by only running when there are entities to
remove. This makes sense because for the most part, we will not be removing entities very often so it does not make sense to iterate unless there are entities which do need removing. Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 45c4910 - Browse repository at this point
Copy the full SHA 45c4910View commit details -
Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0a7c065 - Browse repository at this point
Copy the full SHA 0a7c065View commit details -
Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1e7416f - Browse repository at this point
Copy the full SHA 1e7416fView commit details -
Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 453b54b - Browse repository at this point
Copy the full SHA 453b54bView commit details -
Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4d9809a - Browse repository at this point
Copy the full SHA 4d9809aView commit details -
Now the PosePublisher system likes to go 💥
Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 968c3ac - Browse repository at this point
Copy the full SHA 968c3acView commit details -
Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 862ff3d - Browse repository at this point
Copy the full SHA 862ff3dView commit details -
This commit removes an "optimization" in the PosePublisher that was causing the system to segfault when an entity was removed. In reality this commit is unrelated to the previous few commits. However, without this change the previous change would cause removal of an entity to crash demos that used pose publishers. I think the crux of the issue is that protobufs takeover memory management of objects leading to a scenario where if a reference was freed elsewhere, the protobuf would continue to hold said reference. When we try to do operations on the protobuf we end up double-freeing the memory and hence there is a 💥. Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b4e07a3 - Browse repository at this point
Copy the full SHA b4e07a3View commit details -
Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f67db9e - Browse repository at this point
Copy the full SHA f67db9eView commit details -
Adds a container to handle system removal better.
Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f16bad1 - Browse repository at this point
Copy the full SHA f16bad1View commit details -
Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8294888 - Browse repository at this point
Copy the full SHA 8294888View commit details -
Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 53e951a - Browse repository at this point
Copy the full SHA 53e951aView commit details -
Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 446e816 - Browse repository at this point
Copy the full SHA 446e816View commit details -
Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7ecefdc - Browse repository at this point
Copy the full SHA 7ecefdcView commit details -
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 19b418c - Browse repository at this point
Copy the full SHA 19b418cView commit details -
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e84d9dc - Browse repository at this point
Copy the full SHA e84d9dcView commit details -
Use the new simplified drop API.
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b5878e5 - Browse repository at this point
Copy the full SHA b5878e5View commit details -
Fixed systemcontainer logic bug.
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3dd4395 - Browse repository at this point
Copy the full SHA 3dd4395View commit details -
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4d104ec - Browse repository at this point
Copy the full SHA 4d104ecView commit details -
Rename according to @scpeters feedback.
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 483e19a - Browse repository at this point
Copy the full SHA 483e19aView commit details -
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5ded114 - Browse repository at this point
Copy the full SHA 5ded114View commit details -
Configuration menu - View commit details
-
Copy full SHA for 378399d - Browse repository at this point
Copy the full SHA 378399dView commit details -
Remove the use of
std::iterator
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 391496f - Browse repository at this point
Copy the full SHA 391496fView commit details -
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6114175 - Browse repository at this point
Copy the full SHA 6114175View commit details -
Configuration menu - View commit details
-
Copy full SHA for f486fb8 - Browse repository at this point
Copy the full SHA f486fb8View commit details -
Apply suggestions from code review
Co-authored-by: Steve Peters <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 574ab2d - Browse repository at this point
Copy the full SHA 574ab2dView commit details -
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f5b3878 - Browse repository at this point
Copy the full SHA f5b3878View commit details -
Simplified logic using stl algorithms
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5581525 - Browse repository at this point
Copy the full SHA 5581525View commit details -
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3a39ff5 - Browse repository at this point
Copy the full SHA 3a39ff5View commit details -
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9dafb7d - Browse repository at this point
Copy the full SHA 9dafb7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6eb2d2f - Browse repository at this point
Copy the full SHA 6eb2d2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 91521b7 - Browse repository at this point
Copy the full SHA 91521b7View commit details -
Fix crash and revert pose-publisher changes.
Thanks @azeey I found the source of the crash. It comes from the fact that the PostUpdate system list changes with time. The reference taken by the thread to the PostUpdate interface will change over time. Thus we copy the interface pointer. Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 36ed0ad - Browse repository at this point
Copy the full SHA 36ed0adView commit details -
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b7a7d8c - Browse repository at this point
Copy the full SHA b7a7d8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e73b05 - Browse repository at this point
Copy the full SHA 1e73b05View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0b3a9e - Browse repository at this point
Copy the full SHA e0b3a9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d6f115 - Browse repository at this point
Copy the full SHA 2d6f115View commit details -
Avoid cross-thread communication
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5e27af8 - Browse repository at this point
Copy the full SHA 5e27af8View commit details -
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 18d122c - Browse repository at this point
Copy the full SHA 18d122cView commit details -
Significantly reworked how things work
Instead of using barriers simply stop all PostUpdate threads. This makes the PR much smaller and easier to reason about. Additionally it addresses unit test failures caught by @scpeters. Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ff833ce - Browse repository at this point
Copy the full SHA ff833ceView commit details -
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 33d5d4f - Browse repository at this point
Copy the full SHA 33d5d4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e4174c4 - Browse repository at this point
Copy the full SHA e4174c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26aa106 - Browse repository at this point
Copy the full SHA 26aa106View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e12607 - Browse repository at this point
Copy the full SHA 8e12607View commit details
Commits on Jul 10, 2024
-
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 401e501 - Browse repository at this point
Copy the full SHA 401e501View commit details -
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 21a18cf - Browse repository at this point
Copy the full SHA 21a18cfView commit details -
Signed-off-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7b370c2 - Browse repository at this point
Copy the full SHA 7b370c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b792bfa - Browse repository at this point
Copy the full SHA b792bfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 00a6e47 - Browse repository at this point
Copy the full SHA 00a6e47View commit details
Commits on Jul 12, 2024
-
Use parentEntity available in
systems
instead of storing it for eac……h interface (#2473) --------- Signed-off-by: Addisu Z. Taddese <[email protected]> Signed-off-by: Steve Peters <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]> Co-authored-by: Steve Peters <[email protected]> Co-authored-by: Arjo Chakravarty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7026b57 - Browse repository at this point
Copy the full SHA 7026b57View commit details
Commits on Jul 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ed980d9 - Browse repository at this point
Copy the full SHA ed980d9View commit details