Brick builds: CPU workers vs WebGPU compute

A measuring prototype (ticket P4), not a renderer: the product stays WebGL 2 only. For the small, medium and heavy bench scenes it times the sparse brick build of the brick renderer (CPU, in its worker) and the same samples evaluated by a WGSL compute shader over the same culled operations. Full build, then every scripted edit's dirty bricks. Nothing is drawn.

Checking WebGPU…

idle

GPU pack = culling and packing on the main thread; compute = upload, dispatch and onSubmittedWorkDone; total = pack + compute; pass = GPU timestamps of the compute pass (when the adapter offers timestamp-query). Readback is only for the correctness check and is in the report, not in these times. Speed-up = CPU edit p95 / GPU edit total p95. Full builds run twice; the warm run is shown.

Brick cache on the GPU (F1.3)

The same full build and edits through the brick cache: the CPU picks the bricks (same keys, same far-brick skip, same slots rules as the brick store), a compute pass writes them straight into the atlas, a 3D texture (r8unorm with texture-formats-tier1, else r32float). Full and edit times are build call + onSubmittedWorkDone, no readback. Afterwards, once: reconcile (reads the 4-byte near flag per slot, frees bricks with no sample in the band) and one atlas readback, compared with the CPU store. Check = same bricks on both sides and every byte within 1 of the store's. vs CPU edit p95 = CPU edit p95 / cache edit p95.