rerun icon indicating copy to clipboard operation
rerun copied to clipboard

Advertised frame time at rest much higher for WebGPU vs. WebGL in Chrome with nuscenes

Open abey79 opened this issue 1 year ago • 3 comments

The advertised frame time in WebGPU is consistently higher than in WebGL mode at rest:

image image

When scrolling/playing around both seems similarly smooth. When playing the recording in a loop, WebGPU frame time (very subjectively) appear smaller on average.

rerun 0.13.0-rc.5

Chrome Mac Version 121.0.6167.160 (Official Build) (arm64)

abey79 avatar Feb 09 '24 10:02 abey79

Build the web viewer in release mode with debug symbols, then look at the in-browser profiler for clues

emilk avatar Feb 09 '24 10:02 emilk

How do you get symbols? I tried this but apparently isn't sufficient.

[profile.release]
debug = true # good for profilers
image

abey79 avatar Feb 09 '24 11:02 abey79

These call explain a fair chunk of the apparent timing behaviour.

image

In contrast, with WebGL, very little time is taken by the time re_renderer is reached:

image

That's about as deep an analysis I'm able to produce here. @Wumpf will have much more insight about all this.

abey79 avatar Feb 09 '24 12:02 abey79