rerun-io / rerun

Visualize streams of multimodal data. Free, fast, easy to use, and simple to integrate. Built in Rust.
https://rerun.io/
Apache License 2.0
6.63k stars 335 forks source link

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

Open abey79 opened 3 months ago

abey79 commented 3 months ago

This is quite annoying:

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

emilk commented 3 months 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