Replies: 2 comments
-
I think I got my answer by reading more. Seems like pools are stored in pages instead :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yup, that's because of the pagination. If you enable pointer stability, you can also remove elements without invalidating pointers. Otherwise, the swap-and-pop approach can cause troubles in this case. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @skypjack! Your posts at https://skypjack.github.io/ have been very educational. I am learning and having a blast reading through them. I am not sure if this is the right place to ask a question about the posts, but I noticed that entt supports adding/removing components dynamically at runtime which is a very nice feature. On one of your posts, it is mentioned one way to achieve this is to iterate backwards instead of forward, but I have been wondering how you were able to achieve this in the following case:
Thank you for your time
Beta Was this translation helpful? Give feedback.
All reactions