3D engine that AI agents drive
Add the trade-off column on the home page and mark Vulkan optional everywhere (Part of #890)
Nguyen Xuan An1c721009f484
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex cc72470f..84baf875 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -5,7 +5,7 @@"url": "https://67js.codepawl.com"},"metadata": {- "description": "67js, a 3D engine an AI agent drives through MCP, with a WebGL2 rasterizer and a path tracer on CPU, WebGL2 and Vulkan."+ "description": "67js, a 3D engine an AI agent drives through MCP, with a WebGL2 rasterizer and a path tracer on CPU and WebGL2, plus Vulkan with the optional render-native package."},"plugins": [{diff --git a/README.md b/README.mdindex 575cf7db..87fde861 100644--- a/README.md+++ b/README.md@@ -74,6 +74,7 @@ Cook cpu needs no card, so VRAM does not apply.[docs/cycles-parity.md](https://github.com/codepawl/67.js/blob/main/docs/cycles-parity.md) has the Cook against Cycles method on one scene.The experimental real-time path tracer is not the realtime-high tier.+These figures come from lit-interior only, measured before the idle gate with the card 17 to 20 percent busy.On the WebGPU backend it draws a frame in 5.6 ms.FLIP drops under 0.20 after 16 frames (0.15 s) and under 0.10 after 64 frames (0.41 s).It ends at 0.056 after 256 frames.@@ -254,10 +255,10 @@ The [render skill](skills/render-67js-media/SKILL.md) lists every preset and fla## Performance-Each number below comes from this repository's benchmarks. The RTX 3060 was shared with other jobs.+Each number below comes from this repository's benchmarks.- **Bundle size.** On `lit-box`, 67js is 58,788 bytes gzip and three.js is 133,797 (2.28 times smaller). This is the `npm run size` result on 2026-11-11. The goal of 50,000 bytes is not met yet. [bench/size/README.md](bench/size/README.md) has every scene.-- **Path tracing on the GPU.** One run on 2026-11-03 traced the 1920 by 1080 demo room (181,708 triangles, 64 samples, 8 bounces). The 8-thread CPU tracer took 585.9 s. The WebGL2 GPU tracer took 58.15 s, and that figure includes 10.3 s of shader compile. Whether the CPU figure is end to end is not recorded. [docs/webgpu-decision.md](docs/webgpu-decision.md) has the method.+- **Path tracing on the GPU.** One run on 2026-11-03, on a shared machine, traced the 1920 by 1080 demo room (181,708 triangles, 64 samples, 8 bounces). The 8-thread CPU tracer took 585.9 s. The WebGL2 GPU tracer took 58.15 s, and that figure includes 10.3 s of shader compile. Whether the CPU figure is end to end is not recorded, so read the two as separate figures, not a speedup. [docs/webgpu-decision.md](docs/webgpu-decision.md) has the method.- **Cook against Cycles.** See [Quality tiers](#quality-tiers) and [docs/cycles-parity.md](https://github.com/codepawl/67.js/blob/main/docs/cycles-parity.md).[docs/verification.md](docs/verification.md) has older results and their limits.diff --git a/index.html b/index.htmlindex 47363f26..fde02274 100644--- a/index.html+++ b/index.html@@ -179,16 +179,16 @@ renderer.render({ eye: [58, 31, 84], target: [-8, 3, -18] });</code></pre><p>Six scenes at 960x540 on an idle RTX 3060. Each value is the range of the per-scene medians across the scenes. FLIP is the error against a Cycles 4096-sample reference, lower is better. Tier names are working names, and the <code>quality</code> setting that picks one is planned.</p><div id="tiers-table"><ul class="tier-list">- <li class="tier-row tier-head" aria-hidden="true"><span>Tier</span><span>For</span><span>Runs on</span><span>67js</span><span>Blender</span><span>FLIP error</span></li>- <li class="tier-row"><span data-label="Tier">draft</span><span data-label="For">A quick look while editing</span><span data-label="Runs on">Glaze, 0.5 scale, 1 sample</span><span data-label="67js">0.54 to 1.04 ms a frame</span><span data-label="Blender">EEVEE 1 sample: 56 to 59 ms a render call</span><span data-label="FLIP error">Glaze 0.045 to 0.188, EEVEE 0.041 to 0.562</span></li>- <li class="tier-row"><span data-label="Tier">realtime</span><span data-label="For">Interactive use</span><span data-label="Runs on">Glaze, defaults</span><span data-label="67js">0.77 to 0.98 ms a frame</span><span data-label="Blender">EEVEE 64 samples: 288 to 363 ms a render call</span><span data-label="FLIP error">Glaze 0.030 to 0.197, EEVEE 0.042 to 0.562</span></li>- <li class="tier-row"><span data-label="Tier">realtime-high</span><span data-label="For">Better interactive frames</span><span data-label="Runs on">Planned: Glaze on WebGPU with a GI cache and upscaling (issues 901 and 902)</span><span data-label="67js">not measurable yet</span><span data-label="Blender">none</span><span data-label="FLIP error">none</span></li>- <li class="tier-row"><span data-label="Tier">final</span><span data-label="For">Finished stills</span><span data-label="Runs on">Cook native at 256 samples, Vulkan with the optional render-native package</span><span data-label="67js">1.73 to 4.24 ms a sample</span><span data-label="Blender">Cycles OptiX: 6.81 to 26.41 ms a sample</span><span data-label="FLIP error">Cook native 0.019 to 0.080, Cycles 0.010 to 0.039</span></li>- <li class="tier-row"><span data-label="Tier">final</span><span data-label="For">Finished stills</span><span data-label="Runs on">Cook webgpu at 256 samples, library only</span><span data-label="67js">5.88 to 17.33 ms a sample</span><span data-label="Blender">same Cycles</span><span data-label="FLIP error">Same as native</span></li>+ <li class="tier-row tier-head" aria-hidden="true"><span>Tier</span><span>For</span><span>Runs on</span><span>Trade-off</span><span>67js</span><span>Blender</span><span>FLIP error</span></li>+ <li class="tier-row"><span data-label="Tier">draft</span><span data-label="For">A quick look while editing</span><span data-label="Runs on">Glaze, 0.5 scale, 1 sample, light shading</span><span data-label="Trade-off">Aliased edges, a quarter of the pixels enlarged</span><span data-label="67js">0.54 to 1.04 ms a frame</span><span data-label="Blender">EEVEE 1 sample: 56 to 59 ms a render call</span><span data-label="FLIP error">Glaze 0.045 to 0.188, EEVEE 0.041 to 0.562</span></li>+ <li class="tier-row"><span data-label="Tier">realtime</span><span data-label="For">Interactive use</span><span data-label="Runs on">Glaze, defaults</span><span data-label="Trade-off">Indirect light is approximate</span><span data-label="67js">0.77 to 0.98 ms a frame</span><span data-label="Blender">EEVEE 64 samples: 288 to 363 ms a render call</span><span data-label="FLIP error">Glaze 0.030 to 0.197, EEVEE 0.042 to 0.562</span></li>+ <li class="tier-row"><span data-label="Tier">realtime-high</span><span data-label="For">Better interactive frames</span><span data-label="Runs on">Planned: Glaze on WebGPU with a GI cache and upscaling (<a href="https://github.com/codepawl/67.js/issues/901">901</a>, <a href="https://github.com/codepawl/67.js/issues/902">902</a>)</span><span data-label="Trade-off">More VRAM</span><span data-label="67js">not measurable yet</span><span data-label="Blender">none</span><span data-label="FLIP error">none</span></li>+ <li class="tier-row"><span data-label="Tier">final</span><span data-label="For">Finished stills</span><span data-label="Runs on">Cook native at 256 samples, Vulkan with the optional render-native package</span><span data-label="Trade-off">More samples than Cycles for the same noise</span><span data-label="67js">1.73 to 4.24 ms a sample</span><span data-label="Blender">Cycles OptiX: 6.81 to 26.41 ms a sample</span><span data-label="FLIP error">Cook native 0.019 to 0.080, Cycles 0.010 to 0.039</span></li>+ <li class="tier-row"><span data-label="Tier">final</span><span data-label="For">Finished stills</span><span data-label="Runs on">Cook webgpu at 256 samples, library only</span><span data-label="Trade-off">3.3 to 4.1 times slower per sample than native, same image</span><span data-label="67js">5.88 to 17.33 ms a sample</span><span data-label="Blender">same Cycles</span><span data-label="FLIP error">Same as native</span></li></ul></div>- <p>Glaze runs the realtime tier in under about 1 ms a frame (0.77 to 0.98 ms), measured with a pixel read. Cook native draws a sample 3.8 to 6.2 times faster than Cycles 5.3 OptiX, but needs more samples for the same noise: 6.6 to 19.0 times Cycles' samples on the three noise-limited scenes (lit-interior, spot-area, light-linking), which is 1.05 to 4.02 times Cycles' time for the sampling alone. On metal, glass and outdoor-hdri Cook does not reach Cycles' error, because the error there is limited by bias, so no ratio is given. Cook cpu needs no card, so VRAM does not apply.</p>- <p>Glaze times are per frame. EEVEE times are one full background render call, including scene sync, with EEVEE ray tracing off and no global illumination. They are not a frame rate comparison. Per-scene tables: <a href="https://github.com/codepawl/67.js/blob/main/bench/tiers/results/matrix-960.table.md">bench/tiers on main</a>.</p>+ <p>Glaze runs the realtime tier in under about 1 ms a frame (0.77 to 0.98 ms), measured with a pixel read. Cook native draws a sample 3.8 to 6.2 times faster than Cycles 5.3 OptiX, but needs more samples for the same noise: 6.6 to 19.0 times Cycles' samples on the three noise-limited scenes (lit-interior, spot-area, light-linking), which is 1.05 to 4.02 times Cycles' time for the sampling alone. On metal, glass and outdoor-hdri Cook does not reach Cycles' error, and the error there points to a bias, so no ratio is given. Cook cpu needs no card, so VRAM does not apply.</p>+ <p>Glaze times are per frame. EEVEE times are one full background render call, including scene sync, with EEVEE ray tracing off and no global illumination. They are not a frame rate comparison. Per-scene tables: <a href="https://github.com/codepawl/67.js/blob/main/bench/tiers/results/matrix-960.table.md">bench/tiers on main</a> (live once pull requests 921 and 931 merge).</p></section><section id="documentation" class="documentation-links" aria-labelledby="documentation-title">diff --git a/package.json b/package.jsonindex 309273ee..f47032be 100644--- a/package.json+++ b/package.json@@ -3,8 +3,8 @@"version": "0.19.0","private": false,"type": "module",- "description": "3D engine that AI agents drive: a WebGL2 rasterizer, a path tracer on CPU, WebGL2 and Vulkan (WebGPU opt-in), an MCP server, and PNG, MP4 and GLB export",- "keywords": ["webgl2", "webgpu", "path-tracing", "mcp", "ai-agents", "3d", "performance"],+ "description": "3D engine that AI agents drive: a WebGL2 rasterizer, a path tracer on CPU and WebGL2 (Vulkan with an optional package, WebGPU opt-in), an MCP server, and PNG, MP4 and GLB export",+ "keywords": ["webgl2", "webgpu", "path-tracing", "mcp", "ai-agents", "3d"],"license": "MIT","homepage": "https://67js.codepawl.com","repository": {diff --git a/src/site.css b/src/site.cssindex 05aabc64..590977c2 100644--- a/src/site.css+++ b/src/site.css@@ -382,7 +382,7 @@ body.site > main > section { scroll-margin-top: 96px; }.site .tiers p { color: var(--muted); max-width: 70ch; }.site .tiers p a { text-decoration: underline; }.site .tier-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }-.site .tier-row { display: grid; grid-template-columns: 0.9fr 1.1fr 1.8fr 1.2fr 1.6fr 1.6fr; gap: 12px; padding: 12px 16px; border-radius: var(--panel-radius); background: var(--bg); font-size: 13.5px; }+.site .tier-row { display: grid; grid-template-columns: 0.8fr 1fr 1.5fr 1.4fr 1.1fr 1.4fr 1.4fr; gap: 12px; padding: 12px 16px; border-radius: var(--panel-radius); background: var(--bg); font-size: 13.5px; }.site .tier-row > span { min-width: 0; overflow-wrap: anywhere; }.site .tier-row > span:first-child { color: var(--text); font-weight: 600; }.site .tier-head { background: none; padding-top: 0; padding-bottom: 0; color: var(--muted); font-size: 12.5px; }