rerun-io / rerun

Visualize streams of multimodal data. Fast, easy to use, and simple to integrate. Built in Rust using egui.
https://rerun.io/
Apache License 2.0
6.24k stars 288 forks source link

Annoying frame flashing when hovering (quickly) from a view to another #7170

Open abey79 opened 1 month ago

abey79 commented 1 month ago

This is quite annoying:

https://github.com/user-attachments/assets/4506ee2b-f3fe-4e95-ba49-102e24f99ced

emilk commented 4 weeks ago

A quick investigation shows that this is because a frame-delay in what ViewerContext::hovered reports, together with this logic:

https://github.com/rerun-io/rerun/blob/2acbb15ec8bf661db94139d5e3bc006f43ba1a57/crates/viewer/re_viewport/src/viewport.rs#L179-L189