Closed reworks-org closed 2 months ago
To be honest, I'm not sure I get correctly what you're looking for. Anyway:
I was wondering if entt has any way to improve lookup speed if I say, added a renderable component with a pointer to another component
Well, if you enable pointer stability for a given type, you can store the pointer directly and avoid the lookup as a whole. This is a very convenient way to create parent-child relationsips for example.
I dont know if entt::registry::group is thread safe when looking up a group and creating one.
After the warm-up, yes. The very first use they could run into problems though, because they both want to register a descriptor in the same container under the hood.
Ping. 🙂
I've been working on a renderer for a project and I've written some code using entt::group, but I feel like it should be more efficient, rather than fetching each group one at a time and iterating over each.
I was wondering if entt has any way to improve lookup speed if I say, added a renderable component with a pointer to another component. I know I could deletegate the task to threads, but I dont know if entt::registry::group is thread safe when looking up a group and creating one.
my code below: