What is the way to organize a multi-register render? #831
SergiiSharpov
started this conversation in
General
Replies: 1 comment 1 reply
-
EnTT is designed as a container (or a bunch of containers if you use storage classes directly and get rid of the registry). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm new to your awesome library and was rereading the documentation as much as possible, but still have a few questions and one of them is based on the following functionality:
I have the next independent scenes/features (call it what you like):
So what way should I go using an Entt, to have the ability to render all of the parts independently?
In my head, it looks like:
Before reading the documentation, I was thinking about groups, but as I understood correctly after reading, they are just for grouping the components during the iterations over the registry.
Should each scene have its own registry in this case?
Will there be some conflicts in the internal Entt system if I'm gonna use a registry for each scene?
The main idea is to have an optimized sorting/rendering/updating/etc. for each system.
Because as for the UI there might be a lot of computation about how to shift/scale the next UI element based on the previous one.
And a lot of other computations to make a UI as faster as possible, but I do not need to update it each frame, only on request.
Shortly, I want to render specific systems independently without filtering all the entities that are placed in the single registry frame by frame.
What is the way to organize their entities through the Entt?
Beta Was this translation helpful? Give feedback.
All reactions