WebGPU, off the main thread

The cube, GPU pipeline, and render loop run inside a web worker. The page only forwards events: drag to orbit, scroll to zoom, click to mark a spot. Jam the main thread and watch the cube keep spinning.

wgpu executes in: checking…
renderer: …
Worker (wgpu)
0 fps
0 frames
Main thread
0
heartbeat ticks
Picked: click the cube to mark a spot
View on GitHub