版本说明以英文撰写。
WebGPU loops count right on Macs
A correctness release. On Apple Silicon Macs, a WebGPU shader that added to a buffer inside a loop could lose most of its work: ten passes of v[0] += 1 left 1, not 10. It was the graphics compiler's mistake around a guard our shader translator puts in every loop, and it was there in every release with WebGPU on Macs. The guard is now written in a form the compiler keeps, and all eight test shapes give the same numbers as the reference browser. Page shaders also get a hard stop for endless loops, and canvas drawing spends less time on the CPU.
Loops that keep every pass
The shader translator adds a small guard to each loop so a broken shader cannot spin forever. Next to that guard, the Mac graphics compiler threw away stores to a buffer made inside the loop. We rebuilt the failing shaders by hand in plain Metal until the cause was clear, then changed the guard to a form the compiler cannot reason away. Our own shaders, which we know end, skip the guard on Macs, so canvas and video drawing did not get slower.
改动内容
4 项改动- JavaScript 与 JITFix (macOS): WebGPU loops that read and write a storage buffer keep every pass; ten passes of v[0] += 1 gave 1, now 10, matching the reference browser on all eight test shapes.
- JavaScript 与 JITSafety: a page's WebGPU loop stops after about a million passes per shader call, so an endless loop cannot hang the graphics card. Switch: FLOATI_NO_WGSL_LOOP_BOUND.
- 渲染Speed: canvas drawing uses 9 to 36% fewer CPU instructions per draw on 9 of 11 benchmark rows, with the same pixels.
- 媒体Speed (macOS): the browser's own GPU shaders, which always end, skip the loop guard, so canvas and video drawing keep their speed. Switch: FLOATI_OWN_SHADER_GUARD.





















