Tutte le versioni v0.1.41510 Nov 2026Rendering, JavaScript e JIT, Media Feed

Le note di rilascio sono scritte in inglese.

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 }
In evidenza1

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

Cosa è cambiato

4 modifiche
  1. JavaScript e 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 e 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. RenderingSpeed: canvas drawing uses 9 to 36% fewer CPU instructions per draw on 9 of 11 benchmark rows, with the same pixels.
  4. MediaSpeed (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.
Tutto dalla v0.1.415 in un unico posto

Versioni

v0.1.0 - 0.1.9 · 10 Lug 2026418v0.1.427 · 25 Nov 2026