Tất cả phiên bản v0.1.41510 Tháng 11 2026Hiển thị, JavaScript và JIT, Đa phương tiện Feed

Ghi chú phát hành được viết bằng tiếng Anh.

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.

1 -> 10for (i < 10) { v[0] += 1 }
Điểm nổi bật1

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.

for (i < 10) { v[0] += 1 }1 -> 101000 x 1000 nested loops1 -> 1,000,000Test shapes matching the reference browser0 of 8 -> 8 of 8

Những gì đã thay đổi

4 thay đổi
  1. JavaScript và 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.
  2. JavaScript và 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.
  3. Hiển thịSpeed: canvas drawing uses 9 to 36% fewer CPU instructions per draw on 9 of 11 benchmark rows, with the same pixels.
  4. Đa phương tiệnSpeed (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.
Mọi thứ kể từ v0.1.415 ở một nơi

Phiên bản

v0.1.0 - 0.1.9 · 10 Tháng 7 2026418v0.1.427 · 25 Tháng 11 2026