-
Notifications
You must be signed in to change notification settings - Fork 370
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
Add experimental Dataframe Space View #4468
Conversation
8128095
to
08923a8
Compare
03e865e
to
c9adfe2
Compare
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.
crates/re_viewer_context/src/space_view/space_view_class_registry.rs
Outdated
Show resolved
Hide resolved
.iter() | ||
.flat_map(|entity| { | ||
store | ||
.all_components(&query.timeline, entity) |
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.
You've already made that same query just above!
get_component_with_instances( | ||
store, | ||
&latest_at_query, | ||
&instance.entity_path, | ||
*comp, | ||
) |
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.
all_instances
).
All these get_component_instances
queries should be done once at the start and put in a map, then everything can be done cheaply.
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.
As per our discussion yesterday, this is acceptable because the inner table closure is called only for the displayed rows. I added a comment to that effect.
What
Add a new kind of space view—called Dataframe Space View—which display the raw data of the entities added to it. This first iteration display data with the "latest at" semantics, with each rows corresponding to an entity instance.
This features is experimental and has plenty of usability issues (whose growing list is tracked in #4466). As a result, it is disabled by default and can be enabled in the options.
For the purpose of this feature flag, this PR adds support for de-registering a space view from the registry.
Checklist