Skip to content

Architecture: Scene entities and global entities #1199

Answered by skypjack
rubenlg asked this question in Q&A
Discussion options

You must be logged in to vote

I prefer option 1 in a stack-like model where requests are propagated. For example, the update tick starts from the top and goes down to the base unless someone filters/stops it. Same thing for the rendering request, where the layer in the stack knows whether it's the top one or not (ie to shrink the amount of stuff to render).

Any time a system needs information from both registries

Systems don't have to be aware of the fact that more than one registry exist actually. You can provide them with the current scene and make them ask the latter for the data of interest (ie current registry and global one, who cares if they're the same or not). Also, the rendering system doesn't have to acce…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rubenlg
Comment options

Answer selected by rubenlg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
discussion it sounds interesting, let's discuss it
2 participants