-
Notifications
You must be signed in to change notification settings - Fork 335
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
Keep global registry of all visualizers & context systems instead of isolating per space view class #4540
Conversation
This will allow us to store additional state with each registry entry: This will be used to register a `VisualizerEntitySubscriber` and store a handle to it for every visualizer Note that this pr sneakily starts the renaming of `ViewPart(System)` to just `Visualizer`
Size changes
|
Putting a massive renaming change in the same commit as everything else was not very nice of you @Wumpf 🥲 EDIT: Ha nevermind after having a closer look it's more tricky than that 😶 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im too far removed from all of this to really discuss the semantics of it all, but understood the general idea and didn't see anything suprising so... 🟢
struct SpaceViewClassRegistryEntry { | ||
class: Box<dyn DynSpaceViewClass>, | ||
systems: SpaceViewSystemRegistry, | ||
context_systems: HashSet<ViewSystemIdentifier>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then I guess they are... contextualizers
? 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hehe :D. Was actually wondering if it's still VisualizerSystem
in this context, to not make system stick out too much
ah yeah it's not the massive change that is going to happen. But still kinda guilty as I started chipping away on it. |
What
This will allow us to store additional state with each registry entry: This will be used to register a
VisualizerEntitySubscriber
and store a handle to it for every visualizer.All the "interesting" changes are in
crates/re_viewer_context/src/space_view/space_view_class_registry.rs
, everything else is just ripples.Note that this pr sneakily starts the renaming of
ViewPart(System)
to justVisualizer
Checklist