-
Notifications
You must be signed in to change notification settings - Fork 298
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
Show spinner icon while waiting for video decoder #7541
Conversation
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.
It plays it directly, even if there is only a single frame of delay in decoding. I thought this could be annoying, but I think it feels great, and it is a lot simpler than keeping track of for how long we've been waiting.
I concur, this is a lot better than expected. I even like it after playing around with it a bit!
Follow-up ticket for testing this (and .. everything else!) with 3D views: #7543
looking at the way we insert the 2d spinner here I'm skeptical this will work out of the box, but let's take this separately
@@ -174,4 +174,15 @@ impl VisualizerCollection { | |||
) -> impl Iterator<Item = (ViewSystemIdentifier, &dyn VisualizerSystem)> { | |||
self.systems.iter().map(|s| (*s.0, s.1.as_ref())) | |||
} | |||
|
|||
/// Iterate over all visualizer data that can be downcast to the given type. | |||
pub fn iter_visualizer_data<SpecificData: 'static>( |
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.
neat, liking this much better than the global method
let min = top_left_corner_position; | ||
let max = top_left_corner_position + extent_u + extent_v; | ||
let center = 0.5 * (min + max); | ||
let diameter = (max - min).truncate().abs().min_element(); |
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.
this likely breaks in 3D #7543
.. but I'm actually not even sure, gotta check how we place labels on 3D points. Likely we'll have to do a similar thing!
What
This uses the default
egui::Spinner
loading animation.It plays it directly, even if there is only a single frame of delay in decoding. I thought this could be annoying, but I think it feels great, and it is a lot simpler than keeping track of for how long we've been waiting.
Checklist
main
build: rerun.io/viewernightly
build: rerun.io/viewerCHANGELOG.md
and the migration guideTo run all checks from
main
, comment on the PR with@rerun-bot full-check
.