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.45k stars 313 forks source link

High latency hover in macOS Chromium with OpenGL backend #2672

Open martenbjork opened 1 year ago

martenbjork commented 1 year ago

Describe the bug The hover state in the navigation is delayed and makes the app feel sluggish.

To Reproduce Quickly hover the menu items.

Expected behavior The hover state should toggle instantly on mouseenter/mouseout.

Screenshots https://github.com/rerun-io/rerun/assets/875708/2a34aacd-187d-4fe1-8311-ed13b9ecd249

Desktop (please complete the following information): OS: Latest MacOS

Rerun version app.rerun.io/commit/5311903

Additional context I'm using a high resolution, 5K display.

emilk commented 1 year ago

I fail to reproduce: I only get one frame of latency, not at all as bad as the video (btw: you can embed mp4 videos by drag-dropping them into GitHub).

Have you tested it in the native viewer?

What web browser are you using?

Does the size of the browser window affect the latency?

martenbjork commented 1 year ago

Have you tested it in the native viewer?

No, browser only!

What web browser are you using?

Chrome, latest. Running on a M2 MBP.

Does the size of the browser window affect the latency?

Yeah, it does seem like making it a bit smaller reduces the latency a little.


Additional notes: It does seem to be worse in some examples, like when playing the timeline in this one:

image
emilk commented 9 months ago

This seems to only be affecting Chromium on macOS with an OpenGL backend.

Workaround:

image

This should only be a problem with the WebGL version of our web-viewer, so once we use WebGPU as our primary choice (hopefully soon in 0.12), then this problem should go away.