From 26db8152c6303a06cdaf15bf9168f8ab9cde5c7c Mon Sep 17 00:00:00 2001 From: Dennis Smolek Date: Wed, 2 Dec 2026 01:34:19 +0900 Subject: [PATCH 1/6] VDB-P1.11: @pmndrs/vdb ^0.2.0 from npm; matrix.ts --gpu pass-through for Windows laptops --- bench/adapters/matrix.ts | 4 +++- bench/package.json | 2 +- pnpm-lock.yaml | 20 ++++++++++++++++++-- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/bench/adapters/matrix.ts b/bench/adapters/matrix.ts index 17d42059..a3be8026 100644 --- a/bench/adapters/matrix.ts +++ b/bench/adapters/matrix.ts @@ -72,6 +72,8 @@ function main(): void { interleave: { type: 'boolean', default: false }, /** Seconds the runner waits for the machine load to drop before running anyway (rows then carry valid=0 'loaded'). Correctness-only runs on a busy shared Mac pass 0. */ 'load-wait': { type: 'string', default: '' }, + /** Passed to the runner as `--gpu` (apple | nvidia | intel | amd). On a Windows laptop without it Chrome may hand out the iGPU. */ + gpu: { type: 'string', default: '' }, }, }); const renderers = values.renderers!.split(',').filter(Boolean); @@ -98,7 +100,7 @@ function main(): void { return args; }; const runRunner = (repeatArg: string, extra: string[], args: string[]): string => { - const run = spawnSync(process.execPath, [join(REPO, 'bench/runner/run.ts'), '--page', 'competitor', '--suite', 'competitor', '--timeout', values.timeout!, '--repeat', repeatArg, ...(values['load-wait'] ? ['--load-wait', values['load-wait']] : []), ...extra, '--args', ...args], { cwd: REPO, encoding: 'utf8' }); + const run = spawnSync(process.execPath, [join(REPO, 'bench/runner/run.ts'), '--page', 'competitor', '--suite', 'competitor', '--timeout', values.timeout!, '--repeat', repeatArg, ...(values['load-wait'] ? ['--load-wait', values['load-wait']] : []), ...(values.gpu ? ['--gpu', values.gpu] : []), ...extra, '--args', ...args], { cwd: REPO, encoding: 'utf8' }); const out = `${run.stdout}${run.stderr}`; const lines = out.split('\n').filter((l) => /PASS|FAIL|metrics:|FAILED|The page reported|Timed out/.test(l)); console.log(lines.map((l) => l.slice(0, 400)).join('\n')); diff --git a/bench/package.json b/bench/package.json index a63d569c..9b6aacd5 100644 --- a/bench/package.json +++ b/bench/package.json @@ -27,7 +27,7 @@ "devDependencies": { "@meimu/mutracer": "0.3.1", "@pmndrs/upscaler": "^0.6.0", - "@pmndrs/vdb": "link:../../WebVDB/packages/vdb", + "@pmndrs/vdb": "^0.2.0", "@types/three": "0.187.0", "denoiser": "link:../../Denoiser/packages/denoiser", "three": "0.187.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3253dd1b..949f7288 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -64,8 +64,8 @@ importers: specifier: ^0.6.0 version: 0.6.0(three@0.187.0) '@pmndrs/vdb': - specifier: link:../../WebVDB/packages/vdb - version: link:../../WebVDB/packages/vdb + specifier: ^0.2.0 + version: 0.2.0(three@0.187.0) '@types/three': specifier: 0.187.0 version: 0.187.0 @@ -424,6 +424,15 @@ packages: three: optional: true + '@pmndrs/vdb@0.2.0': + resolution: {integrity: sha512-zQ2Hk5WT+dO6/1SMJtkvSKRK+gfusV3NIAn/aRz3ZLHB9Gtyv66DbhzgkFxCVj6O88jFxbPICsWWOWVqDNz2mg==} + engines: {node: '>=20'} + peerDependencies: + three: '>=0.187.0 <0.188.0' + peerDependenciesMeta: + three: + optional: true + '@rollup/rollup-android-arm-eabi@4.68.2': resolution: {integrity: sha512-ItKrNMkEL3hy85kLBXwB0+M6CWWVI8vr7RV+Eb7oDlQIMXLaiEhGfdaj5jAUadYn2v3nwzAhIRl/nLyjAqV9vQ==} cpu: [arm] @@ -1422,6 +1431,13 @@ snapshots: optionalDependencies: three: 0.187.0 + '@pmndrs/vdb@0.2.0(three@0.187.0)': + dependencies: + '@webgpu/types': 0.1.74 + fflate: 0.8.3 + optionalDependencies: + three: 0.187.0 + '@rollup/rollup-android-arm-eabi@4.68.2': optional: true From 7c4826577f3b96f86c2127522c27f8b543d5c17d Mon Sep 17 00:00:00 2001 From: Dennis Smolek Date: Wed, 2 Dec 2026 01:47:37 +0900 Subject: [PATCH 2/6] P1.4c2a: resource table gets TEXTURE_BINDING-only views (Dawn rejects GPU-mip views silently, V346); bindless-check render mips= arg --- DIVERGES.md | 1 + bench/pages/bindless-check.ts | 3 ++- packages/raytracer/src/scene/gpu.ts | 6 +++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/DIVERGES.md b/DIVERGES.md index 31bc9f09..415f4a71 100644 --- a/DIVERGES.md +++ b/DIVERGES.md @@ -215,4 +215,5 @@ why, so each one can be revisited later. One row per divergence. Kinds: **platfo | V342 | 2026-11-24 | Blender Cycles `shade_volume.h` (heterogeneous equiangular; Apache-2.0, ideas only, no code) | V4.4 `volumes.forcedGrid`: one-sample MIS over CLOSED-FORM distance proposals (the majorant's truncated exponential + equiangular, as V4.1 / V4.2) with sigma_s(t) x a ratio-tracked T(0, t) on a forked stream, instead of MIS between the real tracked collision and the equiangular point through null-scattering path pdfs; the grid segment's real collisions skip their NEE. | Simplification: no tracked-distance pdf, reuses the V4.1 sampler and the stream protocol unchanged; unbiased because E[sigma_s T_hat Ld | t] = sigma_s(t) T(0, t) Ld(t). | | V343 | 2026-11-26 | Pharr, Wronski, Salvi, Fajardo 2024 (stochastic texture filtering, Listing 1 / S.1: one uniform reused across the axes by rescaling); Wronski, Pharr, Akenine-Moller 2025 (texel sharing between wave lanes) | `volumes.densityFilter: 'stochastic'` (V7.6): stochastic trilinear density, one texel per lookup. Differences: THREE draws from the tracking stream (one per axis) instead of one rescaled uniform; zero outside the grid without a read; no texel sharing between lanes; no tricubic. | Simplification (independent 24-bit draws keep each axis' probability exact to 2^-24 with no division by a small fraction, and need no change to the megakernel / wavefront stream protocol; the two saved PCG steps were not measured). Sharing: the 2025 paper's own supplement reports block artifacts for ray-marched volumes, and our lanes are not neighbouring pixels after the first vertex. | | V345 | 2026-11-30 | Our own dense grid lookup and brick DDA (`ptVolDensity`, `ptDdaInit` / `ptDdaNext`, V3.2 / P5.v6) | `volumes.gridSource: 'nanovdb'` (VDB-P1.7) replaces both with `@pmndrs/vdb`'s WGSL (`vdbSample`, `vdbMajorantInit` / `vdbMajorantNext`) over the same voxels and the same cells. Two differences per path: the pool's walk never returns a zero-length segment at a cell corner (ours can, and `ptVolSampleBrick` / `ptVolTrBrick` stop on one), and the NanoVDB reader adds the eight taps in another order. Images are therefore not bit-equal to the dense kernel (77-86% of pixels are; relMSE 1e-15 to 1e-6 at equal seeds). The accessor was created per lookup in the first build; since pmndrs/vdb P1.16 (2026-11-30) the kernels keep one per ray segment, made at its first lookup, and the module caches the lower node (`cache: 'lower'`): the same values, images bit-identical to the first build's. | simplification / sibling | the timing A/B of the reader options (quiet pass, VDB-P1.10); cache `'lowerLeaf'` once VDB-P1.14 is understood | +| V346 | 2026-12-02 | gpuweb bindless proposal (table entries are `readonly` by default, any texture usage) | The resource table gets its own views of the texture arrays, created with `usage: TEXTURE_BINDING` (`uploadSceneTextures`); the bind-group path keeps the full-usage views | bug-workaround | Dawn in Chrome 157 (D3D12 and Vulkan, also dawn.node) rejects in `ResourceTable.insert()` any view whose usages are not exactly TEXTURE_BINDING, as an uncaptured validation error: insert still returns the index and `getResource` reads the default black texture. GPU mips (D34) add RENDER_ATTACHMENT / STORAGE_BINDING, so every textured surface of a `table` megakernel rendered black on the RTX 3060 and the Intel UHD (tex-checker mean 0.16 vs 0.56; the lookup check, built with CPU mips, passed). Restricted views: tex-checker / tex-mask per-pixel identical to arrays on Chrome D3D12 (NVIDIA, Intel), dawn.node Vulkan and D3D12. Drop when Dawn follows the proposal's usage rule | | V344 | 2026-11-26 | pmndrs/upscaler defaults (`RuntimeSettings.autoExposure` on) | The NRC / Classroom chain (`nrc-pipeline`, hero) runs the temporal upscaler with `autoExposure: false`, `exposure: 1` (page control **Auto pre-exposure**, `?upAutoExposure=1` for the sibling's default). | Quality. On a dim interior (mean luminance 0.12) the metered pre-exposure lifts the image so the brightest denoised pixels (10-20) sit at the top of the upscaler's invertible tonemap, where its Catmull-Rom history resample overshoots and `tonemapInvert` turns that into values up to 139 while the camera moves (17 hot pixels per 1920 x 1080 frame, both arms; 0 and max 11 with it off; nothing with a still camera either way). Sharpness 0, locks off and shading-change detection off do not remove it; history 4 nearly does. Off also darkens less against the denoised frame (-4% vs -6..7%; N11.5). Numbers: TASKS N11.11; `bench/hero/README.md` "Bright specks while moving". The cause is in the sibling (unclamped bicubic history in tonemapped space): report there. | diff --git a/bench/pages/bindless-check.ts b/bench/pages/bindless-check.ts index bf13e56e..5ea3dc4e 100644 --- a/bench/pages/bindless-check.ts +++ b/bench/pages/bindless-check.ts @@ -524,7 +524,8 @@ async function renderCheck(args: Record, metrics: Record = {}; const bindings = (args['bindings'] ?? 'arrays,table').split(',') as Array<'arrays' | 'table'>; for (const binding of bindings) { - const adapter = new PtMegakernelAdapter({ textureBinding: binding, seed: 1 }); + // `mips=cpu`: every level built on the CPU (the lookup check's setting); default GPU mips (D34) write levels 1+ in their own pass first. + const adapter = new PtMegakernelAdapter({ textureBinding: binding, seed: 1, ...(args['mips'] === 'cpu' ? { mips: 'cpu' as const } : {}) }); await adapter.load(scene); const result = await adapter.render({ spp }); images[binding] = result.image.data; diff --git a/packages/raytracer/src/scene/gpu.ts b/packages/raytracer/src/scene/gpu.ts index de10e8fd..3290390e 100644 --- a/packages/raytracer/src/scene/gpu.ts +++ b/packages/raytracer/src/scene/gpu.ts @@ -239,7 +239,11 @@ export function uploadSceneTextures(device: GPUDevice, textures: SceneTextures, if (!useTable) return { textures: gpuTextures, views, samplers, layout, byteLength: textures.byteLength }; const table = (device as unknown as { createResourceTable(d: { label?: string; size: number }): RtResourceTable }).createResourceTable({ label: `${label} textures`, size: textureTableSize(layout) }); // Order is the WGSL's contract: view i at index i, sampler i at index count + i. A fresh table hands out 0, 1, 2, ...; check rather than assume. - [...views, ...samplers].forEach((resource, i) => { + // Dawn (Chrome 157, D3D12 and Vulkan) refuses a view whose usages are not EXACTLY TEXTURE_BINDING, and the refusal is an uncaptured validation + // error: insert() still returns the index, the slot stays empty and getResource() reads the default (black) texture. GPU mips (D34) add + // RENDER_ATTACHMENT / STORAGE_BINDING and `copySrc` adds COPY_SRC, so the table gets views restricted to sampling (V-row in DIVERGES). + const tableViews = gpuTextures.map((texture) => texture.createView({ dimension: '2d-array', usage: TEXTURE_BINDING })); + [...tableViews, ...samplers].forEach((resource, i) => { const index = table.insert(resource); if (index !== i) throw new Error(`${label}: resource table put entry ${i} at index ${index}`); }); From 883d1902fb4341a01ffd51ad4b4a6e79bc67e674 Mon Sep 17 00:00:00 2001 From: Dennis Smolek Date: Wed, 2 Dec 2026 02:24:52 +0900 Subject: [PATCH 3/6] TASKS P1.4c2a / VDB-P1.11 / W17 sweep (2026-12-02, RTX 3060); Windows traps --- CLAUDE.md | 5 +++++ TASKS.md | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index ba9d2925..bcb7cd18 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1013,3 +1013,8 @@ To go back: restore `pnpm-workspace.yaml` and `pnpm install --offline` (or onlin `node bench/references/render.ts --scenes --renderers pbrt,mitsuba --spp 4096` (pbrt 30 s, Mitsuba 220 s for the smoke at load 60) and `git checkout` the sidecars it rewrites (dates only). A worktree has no `.cache/native`: make the directory and symlink `pbrt-v4` and `mitsuba-venv` from the main checkout (the work directories are then created in the worktree). +- Resource table (P1.4c2a, V346): Dawn (Chrome 157, D3D12 and Vulkan) refuses in `table.insert()` a view whose texture usages are not EXACTLY TEXTURE_BINDING, as an UNCAPTURED validation error: insert still + returns the index, the slot stays empty and `getResource` reads the default black texture (GPU mips add RENDER_ATTACHMENT / STORAGE_BINDING: every textured surface rendered black). Insert views made with + `createView({ ..., usage: TEXTURE_BINDING })`, and wrap any new table code in an error scope while developing. A lookup test built with CPU mips cannot see it (`bindless-check check=render mips=cpu` vs default). +- Windows sweep: `vbuffer-check` and `wf-p5-check` 404 on a fresh worktree until `node bench/assets/fetch.ts` + `node bench/adapters/export-scenes.ts MetalRoughSpheres DispersionTest-notex`; on the 3060 `vbuffer-check` + takes ~21 min and `restir-check` ~13 min (`--timeout 1800000`). wf-p5-check's per-channel `pixels_over_tol` is nonzero by design (cornell 34, swatches-refl 307): judge `relpx_over_tol` / `relpx_max`. diff --git a/TASKS.md b/TASKS.md index 2b92e267..aa145e5a 100644 --- a/TASKS.md +++ b/TASKS.md @@ -58,7 +58,7 @@ suggestion, pros/cons and the A/B that would settle it. | P1.4c | Textures, first slice: the texture-array fallback (works on every device) with size buckets, CPU mips, ray-cone LOD, base colour / metallic-roughness / normal / emissive | agent:textures | โœ… | `packages/raytracer/src/scene/texture.ts` (+ tests), `scene-copy.ts` (`textures` input, `SceneCopy.textureLayout`), `gpu.ts` (`uploadSceneTextures`), `scene-wgsl.ts` (`rtTexSample`, `rtApplyMaterialTextures`, `rtApplyNormalMap`), `rtSurface` texture frame; megakernel `textures` + `textureLod: 0 \| 'cone'` (compiled only when the scene has textures; untextured PFMs on cornell / env-sphere / sponza-white `cmp`-identical at 64 spp). Scenes `tex-checker`, `tex-checker-hf` (procedural, exported to pbrt `imagemap` / Mitsuba `bitmap`). `tex-checker` 1024 spp: relMSE 4.5e-5 vs Mitsuba (pbrt-vs-Mitsuba floor 4.8e-5), relBias 0.00%; `texture-check` page 0 mismatches (normal-map closed forms to 1e-7). Kernel 40.4 KB untextured, 43.7-44.8 KB textured, 46.5 KB with an env map. Layout choice is open (docs/internal/design/scene-copy.md); bindless stays Tier 3 behind the same slots | | P1.4c1 | Textures: `KHR_texture_transform` (offset, rotation, scale, texCoord) per slot | โ€” | ๐ŸŸจ | **Audit 2026-11-26:** applied at load time, per material (`packages/raytracer/src/gltf/scene.ts`, ba45ed1): the scene copy has one uv set per mesh, so slots with different transforms or uv sets use the first and log a note. A per-slot transform in the shader is what is left. a second vec4u in the slot record; today uv is TEXCOORD_0 as is Issue [#52](https://github.com/pmndrs/pathtracer/issues/52). | | P1.4c2 | Textures: bindless path (`chromium-experimental-sampling-resource-table`, Tier 3) behind the same slot API | agent:bindless | ๐ŸŸจ built; GPU verdict open | **Audit 2026-11-26:** verdict on a real GPU: P1.4c2a, [#32](https://github.com/pmndrs/pathtracer/issues/32). 2026-11-19. `TextureOptions.binding: 'table'` (`TextureLayout.binding`, adapter `pt_tex_binding=table`): the bucket arrays go into one `GPUResourceTable` (view i at index i, sampler i at buckets + i), `rtTexSampleRecord` is one `getResource` line (no switch, no texture bindings, no bucket merge: `maxBuckets` unlimited), `rtModuleWgsl` puts the enable line first, the pipeline layout gets `usesResourceTable`, `PtMegakernel` sets the table on its pass; wavefront and interval tracer refuse it. Every other kernel byte-identical (327 files, `size-snapshot`). 6 unit tests (`texture-table.test.ts`). **Found:** Chrome 160 Canary on the M5 exposes the feature (caps tier 3) but Metal fails any COMPUTE pass with a table (V296); an explicit layout needs `usesResourceTable: true`; a 1-layer texture's default view is `2d` and `getResource` then silently returns black. **`--page bindless-check`** on SwiftShader: coherent lookups bit-identical to arrays (and to the CPU twin, 7.7e-6); divergent ones wrong in 0.75 x (1 - 1/buckets) of lanes (lane 0's index, V297), a full-subgroup `subgroupMin` waterfall fixes that but not subgroups with exited lanes, so the textured megakernel reads -72% (tex-checker) / -25% (tex-mask) there. On the real M5 GPU through a fragment shader (`check=fragment`, table in `beginRenderPass({ resourceTable })`: Metal takes tables in render passes, not compute) divergent and holed lookups are correct, bit-identical to arrays: the SwiftShader breakage is SwiftShader's. Memory: 20 groups = 8 merged arrays 33.3 MiB vs table 21.8 MiB (-35%). Follow-ups: P1.4c2a (3060 verdict), P1.4c2b (wavefront), P1.4c2c (native sizes) | -| P1.4c2a | Bindless on real GPUs: `bindless-check` (lookup + render + `timing=1`) on the 3060 in Chrome D3D12 and dawn.node Vulkan, with `dump_shaders` to see whether Dawn emits `NonUniformResourceIndex` / `NonUniform`; Metal once Dawn supports tables in compute | โ€” | โฌœ | Windows handoff W17. Decides whether `table` is correct for divergent indices on real drivers; only then time it against arrays (QUIET-PASS) Issue [#32](https://github.com/pmndrs/pathtracer/issues/32). | +| P1.4c2a | Bindless on real GPUs: `bindless-check` (lookup + render + `timing=1`) on the 3060 in Chrome D3D12 and dawn.node Vulkan, with `dump_shaders` to see whether Dawn emits `NonUniformResourceIndex` / `NonUniform`; Metal once Dawn supports tables in compute | โ€” | ๐ŸŸจ correctness done; timing in the quiet queue | **2026-12-02, RTX 3060 Laptop + Intel UHD (Chrome 157 stable, driver 592.00):** the first render check found every textured surface BLACK with `table` (tex-checker mean 0.16 vs 0.56, same on dawn.node Vulkan and D3D12): Dawn's `ResourceTable.insert()` refuses a view whose usages are not exactly TEXTURE_BINDING (GPU mips, D34, add RENDER_ATTACHMENT / STORAGE_BINDING) as an uncaptured validation error and the slot stays empty. Fixed in `uploadSceneTextures` with sampling-only views (V346); the lookup check never saw it because it builds CPU mips (`bindless-check check=render mips=cpu` reproduces the old pass). After the fix: lookups (coherent, divergent, holed) and the tex-checker / tex-mask renders bit-identical to arrays on Chrome D3D12 (NVIDIA and Intel), dawn.node Vulkan and D3D12. `dump_shaders`: neither backend marks the index non-uniform (HLSL `v_6[i].SampleLevel` without `NonUniformResourceIndex`, no SPIR-V `NonUniform` decoration): NVIDIA and Intel are right anyway, so V297 stays as a per-device check. Intel: `table1wfmin` (waterfall variant) differs from arrays by 1 ulp (6e-8) in 37 of the divergent lanes, which the page counts as an issue; not a lookup error. Timing: `bindless` chunk of `bench/results/quiet-pass/20261202-win/`. Windows handoff W17. Decides whether `table` is correct for divergent indices on real drivers; only then time it against arrays (QUIET-PASS) Issue [#32](https://github.com/pmndrs/pathtracer/issues/32). | | P1.4c2b | Bindless on the wavefront (shade + MASK intersect kernels set the table) and the interval / batch tracers | โ€” | โฌœ | after P1.4c2a says it is correct Issue [#53](https://github.com/pmndrs/pathtracer/issues/53). | | P1.4c2c | Bindless with native texture sizes: one table entry per texture at its own size (no power-of-two resample, V51), sRGB / wrap per texture | โ€” | โฌœ | changes bits for non-power-of-two sources (closer to the file pbrt / Mitsuba read); needs a mip path for odd sizes Issue [#53](https://github.com/pmndrs/pathtracer/issues/53). | | P1.4c3 | Textures from files: the Node glTF loader and `readGlbMeshes` keep TEXCOORD_0 and images (decode PNG/JPEG, KTX2 later) and fill `SceneCopyInput.textures` + the material slots | agent:loader | ๐ŸŸจ | **Audit 2026-11-26:** Node (P2.19) and web (P2.24) halves done; the "readGlbMeshes drops uvs/images" sentence below is stale. Left: KTX2 / WebP, Sponza images in the MANIFEST, the `filter` field. Node side done by P2.19: `loadGltfScene` keeps uvs per material and decodes PNG (all colour types, Adam7) and JPEG (`jpeg-js`) into `generator: 'image'` textures that `sceneDescToCopyInput` reads (ClearCoatTest's JPEG and all 18 Tier 1 models' images checked; PNG bit-exact vs PIL). **Open:** `readGlbMeshes` (the web export reader) still drops uvs/images; Sponza's images are not in MANIFEST.json (Sponza.gltf + .bin only), so `sponza` textures drop with a note; KTX2/WebP not decoded; scene copy has no `filter` field (sampler magFilter is recorded only) **Web half done (P2.24):** `export-scenes.ts` writes TEXCOORD_0 into the glb and decoded RGBA8 image textures beside it; `fetchSceneGlb`/`readGlbMeshes` read them; `pt-megakernel` registers an image loader. Issue [#52](https://github.com/pmndrs/pathtracer/issues/52). | @@ -301,7 +301,7 @@ Proposed 2026-11-15; each is a setting decided by A/B, never on in reference mod | VDB-P1.8 | NanoVDB `vdb-smoke` asset that keeps the pbrt / Mitsuba references valid: `node bench/scenes/volumes/vdb-nanovdb-bake.ts [ ...]` writes `.nvdb` (+ `.nvdb.json`) from `.{f32,json}` | agent | โœ… | Issue [#68](https://github.com/pmndrs/pathtracer/issues/68) (pmndrs/vdb#40). `vdbBuildFromDense` of the transposed array (ours is x fastest, it reads x-major), `writeNvdb` codec ZIP, then the bytes are parsed again and EVERY voxel centre compared with the `.f32` by `Object.is` (throws on any difference). **2026-11-30:** `vdb-smoke` 60 x 115 x 60: 0 of 414,000 voxels differ; file 0.58 MB (image 1.43 MB, dense 1.66 MB). Also baked, 0 differing: `cloud256` (image 15.8 MB vs dense 67.1 MB), `vdb-wdas-cloud` 170 x 117 x 209 (5.8 vs 16.6 MB), `vdb-bunny-cloud` 293 x 290 x 223 (23.7 vs 75.8 MB). Tests `vdb-nanovdb-bake.test.ts` (the check counts a 1-ulp change, a -0 and a transposed grid; the real `vdb-smoke` when its `.f32` is there). Same index space as the dense grid (voxel (i, j, k) at index (i, j, k), background 0): the scene's world-to-index matrix is unchanged. Generated, git-ignored (CC BY-SA derivative). The page reads it with `pt_grid_source=nanovdb,pt_nvdb=file`. | | VDB-P1.9 | Gate `vol-vdb-smoke` from its NanoVDB asset (`pt_grid_source=nanovdb,pt_nvdb=file`): `node bench/adapters/vdb-gate.ts --report ` | agent | โœ… passes | Issue [#69](https://github.com/pmndrs/pathtracer/issues/69) (pmndrs/vdb#41). **2026-11-30 (M5 Pro, Chrome 158 Metal, 128 x 128, 4096 spp, seed 0, correctness only):** (1) relMSE vs pbrt 4096 spp **3.737e-5** global majorant, **3.826e-5** brick (gate <= 4.84e-5 = the pbrt-vs-Mitsuba floor, re-measured 4.839e-5); (2) image mean within 2 SE of pbrt's: (ours - pbrt) / SE = -0.36, +0.42, +0.05 (brick -0.09, +0.68, +0.32), SE 3.3e-5 from the `vol_stderr` plane, OURS alone (pbrt's noise not added: stricter on us); (3) one storage binding for grid data: `@group(2) @binding(16) var vdbPool`, no `texture_3d` (`nanovdb.test.ts`, `vdb-nanovdb.test.ts`); (4) megakernel vs wavefront per pixel <= 5.5e-7 (`wf-p5-check cases=vol-vdb-smoke-nanovdb-file,vol-vdb-smoke-nanovdb,vol-vdb-smoke-nanovdb-brick variants=plain,inline spp=16 tol=7e-5`, 0 pixels over). Controls in the same session: the dense grid reads the same 3.737e-5; `.nvdb` file vs the pool built in the page: bit-identical image. The `*-4096spp.pfm` references were missing on this Mac (git-ignored; only the sidecars were there): re-rendered with `node bench/references/render.ts --scenes vol-vdb-smoke --renderers pbrt,mitsuba --spp 4096` (same pbrt commit and patch; the floor reproduces). `bench/results/VOLUMES.md` row. **Rerun 2026-11-30 after VDB-P1.7's reader change** (one accessor per segment, cache `'lower'`; `--snapshots 16,64,256,1024` as before): 3.737e-5 global, 3.826e-5 brick, (ours - pbrt) / SE -0.36 / +0.42 / +0.05 (brick -0.09 / +0.68 / +0.32): unchanged to the last digit. The brick run of this gate is what caught VDB-P1.14 (cache `'lowerLeaf'`: 1.404e-2). | | VDB-P1.10 | A/B counters: brick vs `nodeMax` majorants, NanoVDB vs dense vs atlas, on `vol-vdb-wdas-cloud`, `vol-vdb-bunny-cloud`, `vol-cl-cloud256` (`node bench/adapters/nanovdb-counters.ts`, CPU, seeded; [COUNTERS.md](bench/results/nanovdb-counters/COUNTERS.md)) | agent | ๐ŸŸจ counters done 2026-11-30; **timing open (quiet pass)**; no DECISIONS change | Issue [#70](https://github.com/pmndrs/pathtracer/issues/70) (pmndrs/vdb#42). The tracking loops are run on the CPU as the kernels write them (ratio tracking over the whole chord, delta tracking to the first real collision), 576 camera rays + 576 sun rays per scene, 4 repeats; the runs match the closed form (sigma_t x integral of the bound) to 1%. **Majorants** (camera rays, transmittance walk; steps / lookups / nulls per ray): wdas global 1 / 83.1 / 77.9, brick 21.9 / 16.8 / 11.5, nodeMax 18.8 / 23.9 / 18.5 (+ 171 tree queries per ray for the walk itself); bunny global 1 / 187 / 184, brick 28.8 / 9.84 / 7.01, nodeMax 26.1 / 16.2 / 13.3 (+ 236); cloud256 global 1 / 128 / 116, brick 32.0 / 16.1 / 3.77, nodeMax 14.4 / 19.6 / 7.22 (+ 130). So bricks give 1.2-1.6x fewer density lookups than nodeMax everywhere and 5-19x fewer than global; nodeMax needs no extra data and takes fewer steps (0.45-0.9x), but each step costs tree queries (5-9 per step) where a brick step is one word. **Storage** (reads per density lookup at the brick walk's collisions): dense 8 texels, atlas 9, NanoVDB lean reader 42-49 pool words with a new accessor per lookup (as VDB-P1.7 builds it; 15 of them are the accessor's set-up) and 22-30 with one accessor per ray (not built: V345). Taps that straddle a leaf face make the one-leaf cache miss on every tap (8 descents of 8 words). **Update 2026-11-30 (pmndrs/vdb P1.16, built in VDB-P1.7):** with one accessor per segment and the lower-node cache the kernels read 23.1-25.9 words per lookup on the transmittance walk and 24.1-27.4 on the free flight (23.4-26.8 and 26.0-31.7 with the accessor's 15 words spread over the segment's lookups: a flight has only 0.9-3.8 lookups; 46-72% of the flights have none and read no accessor); cache `'lowerLeaf'` reads 12.0-13.9 (12.5-15.8 on the flight) but is not the default (VDB-P1.14). pmndrs/vdb measured 23.6-25.0 and 11.7-14.0 with its own counter on 576 random chords of the same grids: within 1.4 words of ours, and its counter (`LeanReadCounter`), run next to ours on our rays, agrees on every lookup (words, distinct words, value), so the gap is the rays. Kernel text: +0.2-0.3 KB over the first build (COUNTERS.md). **Memory**: dense r32float 15.9 / 72.3 / 64.0 MB; atlas + indirection 0.48x / 0.45x / 0.37x of it (half again at r16float); NanoVDB image 0.35x / 0.31x / 0.24x (f32 values) + the brick range (<= 0.15 MB). The pool's `align: 'pathtracer'` bricks equal `brickMajorants` value for value on all three. A word of a storage buffer and a texel of a 3D texture do not cost the same: the decision needs the timing A/B (QUIET-PASS: `wf-p5-check timing=1` / `matrix.ts` on these scenes with `pt_volume_majorant=brick` x {dense, `pt_grid_layout=atlas`, `pt_grid_source=nanovdb`}). Best-effort hint only, loaded machine (load 60+), NOT a result: the 4096 spp `vol-vdb-smoke` page ran 38 s with the pool and the global majorant, 18 s with the pool and bricks, 9 s dense. Not built here: `nodeMax` in our kernels (needs the vendored `march` module, ~30 KB), `pool.buildMajorant`, the unchecked accessor init (`vdbAccessorInitUnchecked`: 8 words in place of 15 per segment). `majorantWalk` (the nodeMax CPU twin) is not a public export of `@pmndrs/vdb`: the script imports `dist/tools/internal.js` by path and drops the row when it is missing. | -| VDB-P1.11 | The bench takes `@pmndrs/vdb` as a package instead of the sibling path; stale `CLAUDE.md` traps fixed; `convertVdbFile` reads all three voxel sizes | agent | ๐ŸŸจ everything but the version bump (needs `@pmndrs/vdb` 0.2.0 on npm; 0.1.0 has no majorant profile, `vdbBuildFromDense` contract or `writeNvdb` this branch uses) | Issue [#71](https://github.com/pmndrs/pathtracer/issues/71) (pmndrs/vdb#43). **Done 2026-11-30:** `vdb-grid.ts`, `vdb-worker.ts` import `parseVdb` from `@pmndrs/vdb/tools` (no `WEBVDB_DIR`, no `nodeImport`, no `/@fs/` URL; `webVdbRoot()`, `__BENCH_WEBVDB__`, `toolsUrl` deleted); the smoke sample is a pinned download (`bench/assets/MANIFEST.json` `vdb-smoke-sample`, sha256 09e5727d..., `node bench/assets/fetch.ts --only vdb-smoke-sample`); `vdb-grid.test.ts` runs in process; `vdb-convert.ts` `source.voxelSizeXYZ` and per-axis bounds (`vdb-convert.test.ts`: voxel 0.5 x 1 x 2, fails on the x-only code). Checked with `WEBVDB_DIR` unset: `vdb-grid.test.ts` + `vdb-convert.test.ts` pass, the regenerated `vdb-smoke.f32` is byte-identical (sha256 216333b2...), `node bench/runner/run.ts --page vdb-browser --no-lock --args expect=` PASS. **The one step left** (after `@pmndrs/vdb@0.2.0` is published): in `bench/package.json` replace `"@pmndrs/vdb": "link:../../WebVDB/packages/vdb"` (devDependencies) with `"@pmndrs/vdb": "^0.2.0"` (dependencies, next to `@pmndrs/bvh`), `pnpm install`, commit `bench/package.json` + `pnpm-lock.yaml`; `linkedVdbRoot()` in `bench/runner/server.ts` then returns null by itself (keep it: a local override still works) and the `link:` trap in CLAUDE.md goes. Then rerun `pnpm test`, `node bench/size-snapshot.ts`, `vdb-browser`, and the VDB-P1.7 / P1.9 commands. Until then the link needs a WebVDB checkout with `pnpm build` done (its `dist/` on this Mac was stale on 2026-11-30: no `tools/`). The adapter loads `vdb-nanovdb.ts` by URL, so the hosted showcase build does not need the package either way. **2026-11-30:** VDB-P1.7 now uses `cache`, `keep` and `layout: 'x-fastest'`, which are in `@pmndrs/vdb` main since 32a62a2 (0.2.0 will have them): until the npm step the link must point at a build of that main or later (`vdb-nanovdb.test.ts` and `vdb-nanovdb-bake.test.ts` fail on an older `dist`: it would read our arrays as x-major). | +| VDB-P1.11 | The bench takes `@pmndrs/vdb` as a package instead of the sibling path; stale `CLAUDE.md` traps fixed; `convertVdbFile` reads all three voxel sizes | agent | โœ… | **2026-12-02:** `bench/package.json` takes `@pmndrs/vdb ^0.2.0` from npm (0.2.0 has `./tools`, `layout: 'x-fastest'`, `cache`, `keep`); typecheck and `pnpm test` pass on Windows, the nanovdb kernel variants build there. Issue [#71](https://github.com/pmndrs/pathtracer/issues/71) (pmndrs/vdb#43). **Done 2026-11-30:** `vdb-grid.ts`, `vdb-worker.ts` import `parseVdb` from `@pmndrs/vdb/tools` (no `WEBVDB_DIR`, no `nodeImport`, no `/@fs/` URL; `webVdbRoot()`, `__BENCH_WEBVDB__`, `toolsUrl` deleted); the smoke sample is a pinned download (`bench/assets/MANIFEST.json` `vdb-smoke-sample`, sha256 09e5727d..., `node bench/assets/fetch.ts --only vdb-smoke-sample`); `vdb-grid.test.ts` runs in process; `vdb-convert.ts` `source.voxelSizeXYZ` and per-axis bounds (`vdb-convert.test.ts`: voxel 0.5 x 1 x 2, fails on the x-only code). Checked with `WEBVDB_DIR` unset: `vdb-grid.test.ts` + `vdb-convert.test.ts` pass, the regenerated `vdb-smoke.f32` is byte-identical (sha256 216333b2...), `node bench/runner/run.ts --page vdb-browser --no-lock --args expect=` PASS. **The one step left** (after `@pmndrs/vdb@0.2.0` is published): in `bench/package.json` replace `"@pmndrs/vdb": "link:../../WebVDB/packages/vdb"` (devDependencies) with `"@pmndrs/vdb": "^0.2.0"` (dependencies, next to `@pmndrs/bvh`), `pnpm install`, commit `bench/package.json` + `pnpm-lock.yaml`; `linkedVdbRoot()` in `bench/runner/server.ts` then returns null by itself (keep it: a local override still works) and the `link:` trap in CLAUDE.md goes. Then rerun `pnpm test`, `node bench/size-snapshot.ts`, `vdb-browser`, and the VDB-P1.7 / P1.9 commands. Until then the link needs a WebVDB checkout with `pnpm build` done (its `dist/` on this Mac was stale on 2026-11-30: no `tools/`). The adapter loads `vdb-nanovdb.ts` by URL, so the hosted showcase build does not need the package either way. **2026-11-30:** VDB-P1.7 now uses `cache`, `keep` and `layout: 'x-fastest'`, which are in `@pmndrs/vdb` main since 32a62a2 (0.2.0 will have them): until the npm step the link must point at a build of that main or later (`vdb-nanovdb.test.ts` and `vdb-nanovdb-bake.test.ts` fail on an older `dist`: it would read our arrays as x-major). | | VDB-P1.13 | DXC compile of the NanoVDB media kernels on the Windows machine (`kernel-compile` with `vol-grid-nanovdb*` variants) | agent (Windows) | โฌœ | Issue [#72](https://github.com/pmndrs/pathtracer/issues/72) (pmndrs/vdb#44). Not run: needs the RTX 3060 laptop and VDB-P1.11's npm step (no WebVDB checkout there). Ready since 2026-11-30: `nanovdbKernelVariants` in `bench/kernel-variants.ts` (`vol-grid-nanovdb`, `-brick`, `-brick-decomp`: the megakernel and the five wavefront kernels of each; 18 files of `node bench/size-snapshot.ts`, skipped when the package is missing) and `node bench/runner/run.ts --page kernel-compile --args prefix=vol-grid-nanovdb` (wavefront: `set=wavefront prefix=wf-vol-grid-nanovdb`; the page loads `@pmndrs/vdb` only for a nanovdb filter; both compile on Metal). Sizes (Mac, shipped text, one accessor per segment + cache `'lower'`): megakernel 50.1 KB global / 54.1 KB brick / 55.0 KB brick + minima against 46.9 / 50.1 / 50.8 KB dense, so every nanovdb media megakernel is at or over the ~50 KB DXC class; wavefront intersect 21.4-25.7 KB, shadow 20.0-23.7 KB. The vdb module's `keep` option does not bring them down: our `prune` already drops what the entry point does not reach, so `keep` moves the shipped bytes by 0-2 (COUNTERS.md, kernel text). The +3.2 to +4.2 KB over dense are functions the kernels call (the brick walk's init and step, the descent, the sampler, the accessor init). | | VDB-P1.14 | Apple Metal renders the brick megakernel with `volumes.outputs` wrong when the pool's reader caches the lower node AND the leaf (`cache: 'lowerLeaf'`) and the kernel keeps one accessor per segment | agent | โฌœ found 2026-11-30; the default (`cache: 'lower'`) avoids it | No issue yet. M5 Pro, Chrome 158.0.8127.88, Metal. `vol-vdb-smoke`, brick majorants, `pt_volume_outputs=1`, `pt_nvdb_cache=lowerLeaf`: the image is wrong in the columns left and right of the smoke (a grey 0.400 reads 0.195 / 0.190 / 0.153, and other garbage after a small change of the kernel text), image mean 0.483 / 0.482 / 0.478 for 0.5026, `vdb-gate.ts` relMSE 1.404e-2 (gate 4.84e-5); `vol_order01` is off while `vol_transmittance` and `vol_scatter_fraction` are bit-identical. The SAME kernel text is right on SwiftShader (relMSE 3.3e-15 against the dense kernel at 8 spp; `PT_CHROME_FLAGS="--use-webgpu-adapter=swiftshader --enable-unsafe-swiftshader" PT_ALLOW_SOFTWARE_ADAPTER=1`), and on Metal each of these is right: cache `'lower'` or `'leaf'`, accessor `'lookup'`, no `outputs`, the global majorant, the wavefront kernels (`wf-p5-check` `vol-vdb-smoke-nanovdb-brick-lowerleaf` <= 5.5e-7). So it is the Metal toolchain (Tint's MSL writer or Apple's compiler) on this 56 KB megakernel, not the WGSL; not narrowed further. Repro (30 s): `node bench/adapters/matrix.ts --renderers pt-megakernel --scenes vol-vdb-smoke --spp 64 --load-wait 0 --name a --extra pt_volume_majorant=brick`, the same with `--name b --extra pt_grid_source=nanovdb,pt_volume_majorant=brick,pt_volume_outputs=1,pt_nvdb_cache=lowerLeaf`, then `node bench/adapters/nanovdb-check.ts --pair b,a` (relMSE 1.7e-2; 6.7e-16 with `pt_nvdb_cache=lower`). To do: bisect the kernel text (which inlined copy of `ptVolTrBrick`, the two extra fields of `VdbAccessor`), try Chrome Canary and `--dawn metal` with toggles, report to Dawn if it reduces. Then `'lowerLeaf'` can become the default: 12-14 pool words per lookup against 23-26 (COUNTERS.md). Until then every reader or module option change reruns `vdb-gate.ts` on the BRICK report: the same-seed pair checks and `wf-p5-check` run without `outputs` and do not see this. | @@ -422,7 +422,7 @@ ORT-Web, WebNN. | X7 | Tell the Denoiser sibling about the ThreeRT fence: its RULES.md lists ports by name; add "ThreeRT before `5cb95f6`" as fenced (D35, meshy-dev/ThreeRT#78) | ~/Developer/Denoiser (needs the maintainer's go-ahead to edit there) | โฌœ | **Audit 2026-11-26:** checked: the Denoiser's RULES.md and CLAUDE.md still have no ThreeRT entry; needs the maintainer's go to edit that repo. Issue [#60](https://github.com/pmndrs/pathtracer/issues/60). | | W10 | DXC compile time of the megakernel / wavefront kernels on the RTX 3060 (D26) | agent (Windows) | โฌœ | decides whether the 50 KB kernel-size rule (`PTWF_AUTO_KERNEL_LIMIT`) moves; the full-feature albedo megakernel is 50.2 KB since D32. Page smoke-tested on the 3060 2026-11-19 (passes); timed run queued: QUIET-PASS "Windows / RTX 3060 queue" (~5-10 min) Issue [#34](https://github.com/pmndrs/pathtracer/issues/34). | | W13 | P3 gate on the 3060: competitor table + Mrays/s + `pt-auto` choice (WINDOWS-HANDOFF W13) | agent (Windows) | โฌœ | closes the 3060 half of P3. Pages smoke-tested 2026-11-19 (all pass); timed chunks queued in QUIET-PASS "Windows / RTX 3060 queue"; W13a analysis needs the Mac reference PFMs copied over Issue [#34](https://github.com/pmndrs/pathtracer/issues/34). | -| W17 | D3D12 correctness sweep: every check page on the RTX 3060 (Chrome 157, D3D12, driver 592.00); first run of the P3-P5 features under DXC | agent (Windows) | โœ… | **2026-11-19: 20 of 20 pages pass** (smoke, caps, scene-copy, trace-core, bsdf-check, shade-check, pt-check, layered-check, openpbr-check, lobe-oracle, lod-check, texture-check, vbuffer-check, pt-outputs-check, realtime-check, wf-frame-check, wf-p5-check, rc-interval-check, materialx-check, restir-check), no DXC compile failure. Highlights: trace-core 1.33M rays 0 closest / visible mismatches, 0 watertight slips (all formats incl. bvh4 / cwbvh8); wf-frame-check Cornell wf vs mk 0 difference; wf-p5-check 8 media / spectral scenes x plain / inline / batch 0 mismatches (spectral per-channel up to 1.1e-4 = the XYZ cancellation, relpx under 1e-5). Three page bugs fixed on the way, none Windows-specific: (1) `layered-check` / `openpbr-check` were never updated for D32's `albedoCorrection: 'texture'` default (`layout: 'auto'` with group 0 only: "No bind group set at group index 2", then ~2000 flag mismatches of garbage); new `bench/pages/layer-corr-bind.ts` binds the table when the pipeline uses it, so the pages now test the default. (2) `rc-interval-check` counted a cross-instance coincident-face tie as an exactness failure (Cornell: box bottom on the floor, same f32 t, both interior; the range changes the walk's child order): `EdgeIndex.coplanarWorld` in `trace-compare.ts` accepts it, the failure note now prints both hits. (3) `downsampler-check` sRGB render path (W16). Not run here: `vol-vdb-smoke` (its grid comes from `~/Developer/WebVDB`, Mac only: copy `bench/assets/generated/volumes/vdb-smoke.{f32,json}` over). **Intel UHD (Chrome 157, D3D12; subgroups 8-16), same day: 15 of 19 pass** (vbuffer-check and restir-check not run: too slow there). Open, for the Mac / bvh side (no tolerance was changed here): (a) **trace-core**: ONE ray of 1.33M (Sponza `edges#7294`), identical in all 9 formats, so the triangle test, not the walk: the GPU hits tri 72111 at bary (1.1e-4, 0.318) (interior, t 2.0528), the f64 CPU walk and the RTX 3060 miss it and hit tri 74679 at t 2.0723. 1.1e-4 is far beyond f32 rounding of a sane triangle: Intel's compile of the edge function loses precision (thin triangle or cancellation; cf. the Metal fma trap, `bvhEdgeFunction`). (b) **bsdf-check**: 5 of 18,664 sampled values off by 0.7-1.2% (> 0.005), narrow lobes only (dielectric alpha 0.0625 pdf; conductor alpha 0.01 f and pdf at u.x 0.007): GPU transcendental / normalize precision on a narrow lobe, distribution not checked. (c) **rc-interval-check**: 4 Cornell `f32-indexed` boundary queries where the competing hit is 1 ulp away in t ON A VERTEX (bary ~2e-8, the box corner touching the floor): `sameOrTie` wants bit-equal t; whether a 1-ulp vertex touch is a tie is the interval contract's call. (d) **openpbr-check** passes but reads `aniso_frame_mismatch` 27 / 2000 and `layered_sample_mismatch` 1 (0 on the 3060). `wf-p5-check`: only `vol-vdb-smoke` Issue [#31](https://github.com/pmndrs/pathtracer/issues/31). | +| W17 | D3D12 correctness sweep: every check page on the RTX 3060 (Chrome 157, D3D12, driver 592.00); first run of the P3-P5 features under DXC | agent (Windows) | โœ… | **2026-12-02 rerun after the P5 / volumes / NanoVDB merges: 21 of 21 pages pass** (the 20 of 11-19 plus downsampler-check `big=0`; trace-core first try; wf-p5-check relpx <= 8e-7 on every case, vol-* and dispersion-test-d2 included; restir-check 13 min, vbuffer-check 21 min). vbuffer-check and wf-p5-check need `export-scenes.ts MetalRoughSpheres DispersionTest-notex` first. **2026-11-19: 20 of 20 pages pass** (smoke, caps, scene-copy, trace-core, bsdf-check, shade-check, pt-check, layered-check, openpbr-check, lobe-oracle, lod-check, texture-check, vbuffer-check, pt-outputs-check, realtime-check, wf-frame-check, wf-p5-check, rc-interval-check, materialx-check, restir-check), no DXC compile failure. Highlights: trace-core 1.33M rays 0 closest / visible mismatches, 0 watertight slips (all formats incl. bvh4 / cwbvh8); wf-frame-check Cornell wf vs mk 0 difference; wf-p5-check 8 media / spectral scenes x plain / inline / batch 0 mismatches (spectral per-channel up to 1.1e-4 = the XYZ cancellation, relpx under 1e-5). Three page bugs fixed on the way, none Windows-specific: (1) `layered-check` / `openpbr-check` were never updated for D32's `albedoCorrection: 'texture'` default (`layout: 'auto'` with group 0 only: "No bind group set at group index 2", then ~2000 flag mismatches of garbage); new `bench/pages/layer-corr-bind.ts` binds the table when the pipeline uses it, so the pages now test the default. (2) `rc-interval-check` counted a cross-instance coincident-face tie as an exactness failure (Cornell: box bottom on the floor, same f32 t, both interior; the range changes the walk's child order): `EdgeIndex.coplanarWorld` in `trace-compare.ts` accepts it, the failure note now prints both hits. (3) `downsampler-check` sRGB render path (W16). Not run here: `vol-vdb-smoke` (its grid comes from `~/Developer/WebVDB`, Mac only: copy `bench/assets/generated/volumes/vdb-smoke.{f32,json}` over). **Intel UHD (Chrome 157, D3D12; subgroups 8-16), same day: 15 of 19 pass** (vbuffer-check and restir-check not run: too slow there). Open, for the Mac / bvh side (no tolerance was changed here): (a) **trace-core**: ONE ray of 1.33M (Sponza `edges#7294`), identical in all 9 formats, so the triangle test, not the walk: the GPU hits tri 72111 at bary (1.1e-4, 0.318) (interior, t 2.0528), the f64 CPU walk and the RTX 3060 miss it and hit tri 74679 at t 2.0723. 1.1e-4 is far beyond f32 rounding of a sane triangle: Intel's compile of the edge function loses precision (thin triangle or cancellation; cf. the Metal fma trap, `bvhEdgeFunction`). (b) **bsdf-check**: 5 of 18,664 sampled values off by 0.7-1.2% (> 0.005), narrow lobes only (dielectric alpha 0.0625 pdf; conductor alpha 0.01 f and pdf at u.x 0.007): GPU transcendental / normalize precision on a narrow lobe, distribution not checked. (c) **rc-interval-check**: 4 Cornell `f32-indexed` boundary queries where the competing hit is 1 ulp away in t ON A VERTEX (bary ~2e-8, the box corner touching the floor): `sameOrTie` wants bit-equal t; whether a 1-ulp vertex touch is a tie is the interval contract's call. (d) **openpbr-check** passes but reads `aniso_frame_mismatch` 27 / 2000 and `layered_sample_mismatch` 1 (0 on the 3060). `wf-p5-check`: only `vol-vdb-smoke` Issue [#31](https://github.com/pmndrs/pathtracer/issues/31). | | P4.5b | 30 fps gate on the RTX 3060L (`realtime-pipeline --gpu nvidia`) | agent (Windows) | ๐ŸŸจ | M5 estimate 23-32 fps without ReSTIR, 19-29 with. **Provisional 2026-11-19** (loaded machine, see X1.i; `scenarios=timing`, megakernel, binary BVH): sponza-white 960x540 -> 1080p, maxDepth 2: no ReSTIR 37.6 ms/frame (37.1-38.8; 26.6 fps), ReSTIR 43.4 ms (43.0-44.0; 23.1 fps). Split (no ReSTIR / ReSTIR): trace 33.0 / 37.6, pack 1.8 / 1.7, SVGF + composite 2.6 / 2.5, upscale 1.7 / 1.3, tonemap 0.2. The trace kernel is the whole gap to 30 fps. Quiet run + sponza-lamps still open Issue [#58](https://github.com/pmndrs/pathtracer/issues/58). | | P4.2d | ReSTIR candidates / spatial k / historyCap at equal chain cost after the denoiser (D32 sets 8 / 2 / 20 from the bias scans, not from an equal-time A/B) | โ€” | โฌœ | many-lights-256, lights-mix-lamps, sponza-lamps Issue [#58](https://github.com/pmndrs/pathtracer/issues/58). | | R1.v | R1's reduced base ignores `albedoCorrection` (V214): fit the reduced base weight or A/B `materialLod` vs `full` on the Tier 1 layered scenes | โ€” | โฌœ | up to +6% on a bright rough base at secondary vertices Issue [#55](https://github.com/pmndrs/pathtracer/issues/55). | From cb6b6cf642e53d6014129561fc5cd9cb8cd8922b Mon Sep 17 00:00:00 2001 From: Dennis Smolek Date: Wed, 2 Dec 2026 03:26:59 +0900 Subject: [PATCH 4/6] kernel-compile: LIVE nonce anchor also matches frame-mode kernels (rt-frame*, *-realtime overwrite ptAccum) --- bench/pages/kernel-compile.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bench/pages/kernel-compile.ts b/bench/pages/kernel-compile.ts index aecb1cdf..a9278e86 100644 --- a/bench/pages/kernel-compile.ts +++ b/bench/pages/kernel-compile.ts @@ -71,7 +71,8 @@ try { const base = Date.now() % 8_000_000; let counter = 0; const ONE = /(?(); From 72c14d4514ff3fec1f54ef5b0847102a0ec45d35 Mon Sep 17 00:00:00 2001 From: Dennis Smolek Date: Wed, 2 Dec 2026 03:42:08 +0900 Subject: [PATCH 5/6] Windows / RTX 3060 timing (best effort): W10, V1.8, VDB-P1.13, W13b/c, P4.5b, X1.i, bindless; REPORT 20261202-win --- TASKS.md | 14 +- .../results/quiet-pass/20261202-win/REPORT.md | 161 ++++++++++++++++++ 2 files changed, 168 insertions(+), 7 deletions(-) create mode 100644 bench/results/quiet-pass/20261202-win/REPORT.md diff --git a/TASKS.md b/TASKS.md index aa145e5a..6b3a3c03 100644 --- a/TASKS.md +++ b/TASKS.md @@ -58,7 +58,7 @@ suggestion, pros/cons and the A/B that would settle it. | P1.4c | Textures, first slice: the texture-array fallback (works on every device) with size buckets, CPU mips, ray-cone LOD, base colour / metallic-roughness / normal / emissive | agent:textures | โœ… | `packages/raytracer/src/scene/texture.ts` (+ tests), `scene-copy.ts` (`textures` input, `SceneCopy.textureLayout`), `gpu.ts` (`uploadSceneTextures`), `scene-wgsl.ts` (`rtTexSample`, `rtApplyMaterialTextures`, `rtApplyNormalMap`), `rtSurface` texture frame; megakernel `textures` + `textureLod: 0 \| 'cone'` (compiled only when the scene has textures; untextured PFMs on cornell / env-sphere / sponza-white `cmp`-identical at 64 spp). Scenes `tex-checker`, `tex-checker-hf` (procedural, exported to pbrt `imagemap` / Mitsuba `bitmap`). `tex-checker` 1024 spp: relMSE 4.5e-5 vs Mitsuba (pbrt-vs-Mitsuba floor 4.8e-5), relBias 0.00%; `texture-check` page 0 mismatches (normal-map closed forms to 1e-7). Kernel 40.4 KB untextured, 43.7-44.8 KB textured, 46.5 KB with an env map. Layout choice is open (docs/internal/design/scene-copy.md); bindless stays Tier 3 behind the same slots | | P1.4c1 | Textures: `KHR_texture_transform` (offset, rotation, scale, texCoord) per slot | โ€” | ๐ŸŸจ | **Audit 2026-11-26:** applied at load time, per material (`packages/raytracer/src/gltf/scene.ts`, ba45ed1): the scene copy has one uv set per mesh, so slots with different transforms or uv sets use the first and log a note. A per-slot transform in the shader is what is left. a second vec4u in the slot record; today uv is TEXCOORD_0 as is Issue [#52](https://github.com/pmndrs/pathtracer/issues/52). | | P1.4c2 | Textures: bindless path (`chromium-experimental-sampling-resource-table`, Tier 3) behind the same slot API | agent:bindless | ๐ŸŸจ built; GPU verdict open | **Audit 2026-11-26:** verdict on a real GPU: P1.4c2a, [#32](https://github.com/pmndrs/pathtracer/issues/32). 2026-11-19. `TextureOptions.binding: 'table'` (`TextureLayout.binding`, adapter `pt_tex_binding=table`): the bucket arrays go into one `GPUResourceTable` (view i at index i, sampler i at buckets + i), `rtTexSampleRecord` is one `getResource` line (no switch, no texture bindings, no bucket merge: `maxBuckets` unlimited), `rtModuleWgsl` puts the enable line first, the pipeline layout gets `usesResourceTable`, `PtMegakernel` sets the table on its pass; wavefront and interval tracer refuse it. Every other kernel byte-identical (327 files, `size-snapshot`). 6 unit tests (`texture-table.test.ts`). **Found:** Chrome 160 Canary on the M5 exposes the feature (caps tier 3) but Metal fails any COMPUTE pass with a table (V296); an explicit layout needs `usesResourceTable: true`; a 1-layer texture's default view is `2d` and `getResource` then silently returns black. **`--page bindless-check`** on SwiftShader: coherent lookups bit-identical to arrays (and to the CPU twin, 7.7e-6); divergent ones wrong in 0.75 x (1 - 1/buckets) of lanes (lane 0's index, V297), a full-subgroup `subgroupMin` waterfall fixes that but not subgroups with exited lanes, so the textured megakernel reads -72% (tex-checker) / -25% (tex-mask) there. On the real M5 GPU through a fragment shader (`check=fragment`, table in `beginRenderPass({ resourceTable })`: Metal takes tables in render passes, not compute) divergent and holed lookups are correct, bit-identical to arrays: the SwiftShader breakage is SwiftShader's. Memory: 20 groups = 8 merged arrays 33.3 MiB vs table 21.8 MiB (-35%). Follow-ups: P1.4c2a (3060 verdict), P1.4c2b (wavefront), P1.4c2c (native sizes) | -| P1.4c2a | Bindless on real GPUs: `bindless-check` (lookup + render + `timing=1`) on the 3060 in Chrome D3D12 and dawn.node Vulkan, with `dump_shaders` to see whether Dawn emits `NonUniformResourceIndex` / `NonUniform`; Metal once Dawn supports tables in compute | โ€” | ๐ŸŸจ correctness done; timing in the quiet queue | **2026-12-02, RTX 3060 Laptop + Intel UHD (Chrome 157 stable, driver 592.00):** the first render check found every textured surface BLACK with `table` (tex-checker mean 0.16 vs 0.56, same on dawn.node Vulkan and D3D12): Dawn's `ResourceTable.insert()` refuses a view whose usages are not exactly TEXTURE_BINDING (GPU mips, D34, add RENDER_ATTACHMENT / STORAGE_BINDING) as an uncaptured validation error and the slot stays empty. Fixed in `uploadSceneTextures` with sampling-only views (V346); the lookup check never saw it because it builds CPU mips (`bindless-check check=render mips=cpu` reproduces the old pass). After the fix: lookups (coherent, divergent, holed) and the tex-checker / tex-mask renders bit-identical to arrays on Chrome D3D12 (NVIDIA and Intel), dawn.node Vulkan and D3D12. `dump_shaders`: neither backend marks the index non-uniform (HLSL `v_6[i].SampleLevel` without `NonUniformResourceIndex`, no SPIR-V `NonUniform` decoration): NVIDIA and Intel are right anyway, so V297 stays as a per-device check. Intel: `table1wfmin` (waterfall variant) differs from arrays by 1 ulp (6e-8) in 37 of the divergent lanes, which the page counts as an issue; not a lookup error. Timing: `bindless` chunk of `bench/results/quiet-pass/20261202-win/`. Windows handoff W17. Decides whether `table` is correct for divergent indices on real drivers; only then time it against arrays (QUIET-PASS) Issue [#32](https://github.com/pmndrs/pathtracer/issues/32). | +| P1.4c2a | Bindless on real GPUs: `bindless-check` (lookup + render + `timing=1`) on the 3060 in Chrome D3D12 and dawn.node Vulkan, with `dump_shaders` to see whether Dawn emits `NonUniformResourceIndex` / `NonUniform`; Metal once Dawn supports tables in compute | โ€” | ๐ŸŸจ correctness done; timing in the quiet queue | **2026-12-02, RTX 3060 Laptop + Intel UHD (Chrome 157 stable, driver 592.00):** the first render check found every textured surface BLACK with `table` (tex-checker mean 0.16 vs 0.56, same on dawn.node Vulkan and D3D12): Dawn's `ResourceTable.insert()` refuses a view whose usages are not exactly TEXTURE_BINDING (GPU mips, D34, add RENDER_ATTACHMENT / STORAGE_BINDING) as an uncaptured validation error and the slot stays empty. Fixed in `uploadSceneTextures` with sampling-only views (V346); the lookup check never saw it because it builds CPU mips (`bindless-check check=render mips=cpu` reproduces the old pass). After the fix: lookups (coherent, divergent, holed) and the tex-checker / tex-mask renders bit-identical to arrays on Chrome D3D12 (NVIDIA and Intel), dawn.node Vulkan and D3D12. `dump_shaders`: neither backend marks the index non-uniform (HLSL `v_6[i].SampleLevel` without `NonUniformResourceIndex`, no SPIR-V `NonUniform` decoration): NVIDIA and Intel are right anyway, so V297 stays as a per-device check. Intel: `table1wfmin` (waterfall variant) differs from arrays by 1 ulp (6e-8) in 37 of the divergent lanes, which the page counts as an issue; not a lookup error. Timing (thermal valid, best effort): table / arrays 1.02 coherent, 1.05 divergent on `fit` (6 buckets); 0.63 / 0.76 on `many` (20 groups, arrays merged to 8), [report](bench/results/quiet-pass/20261202-win/REPORT.md). Windows handoff W17. Decides whether `table` is correct for divergent indices on real drivers; only then time it against arrays (QUIET-PASS) Issue [#32](https://github.com/pmndrs/pathtracer/issues/32). | | P1.4c2b | Bindless on the wavefront (shade + MASK intersect kernels set the table) and the interval / batch tracers | โ€” | โฌœ | after P1.4c2a says it is correct Issue [#53](https://github.com/pmndrs/pathtracer/issues/53). | | P1.4c2c | Bindless with native texture sizes: one table entry per texture at its own size (no power-of-two resample, V51), sRGB / wrap per texture | โ€” | โฌœ | changes bits for non-power-of-two sources (closer to the file pbrt / Mitsuba read); needs a mip path for odd sizes Issue [#53](https://github.com/pmndrs/pathtracer/issues/53). | | P1.4c3 | Textures from files: the Node glTF loader and `readGlbMeshes` keep TEXCOORD_0 and images (decode PNG/JPEG, KTX2 later) and fill `SceneCopyInput.textures` + the material slots | agent:loader | ๐ŸŸจ | **Audit 2026-11-26:** Node (P2.19) and web (P2.24) halves done; the "readGlbMeshes drops uvs/images" sentence below is stale. Left: KTX2 / WebP, Sponza images in the MANIFEST, the `filter` field. Node side done by P2.19: `loadGltfScene` keeps uvs per material and decodes PNG (all colour types, Adam7) and JPEG (`jpeg-js`) into `generator: 'image'` textures that `sceneDescToCopyInput` reads (ClearCoatTest's JPEG and all 18 Tier 1 models' images checked; PNG bit-exact vs PIL). **Open:** `readGlbMeshes` (the web export reader) still drops uvs/images; Sponza's images are not in MANIFEST.json (Sponza.gltf + .bin only), so `sponza` textures drop with a note; KTX2/WebP not decoded; scene copy has no `filter` field (sampler magFilter is recorded only) **Web half done (P2.24):** `export-scenes.ts` writes TEXCOORD_0 into the glb and decoded RGBA8 image textures beside it; `fetchSceneGlb`/`readGlbMeshes` read them; `pt-megakernel` registers an image loader. Issue [#52](https://github.com/pmndrs/pathtracer/issues/52). | @@ -248,7 +248,7 @@ Proposed 2026-11-15; each is a setting decided by A/B, never on in reference mod | V1.3 | Separate medium-scatter depth cap (`volumes.separateDepth` + `PtLimits.maxVolumeDepth`, bench `pt_maxvoldepth=N`) | agent | โœ… | `depth` stays the total vertex count; a scatter ends the path at `scatters >= maxVolumeDepth`, a surface at `depth - scatters >= maxDepth` (V303). Limit in `ptParams.forward.w` (u32). Wavefront packs the scatter count in bits 14-27 of the depth word (total depth bits 0-13, cap 16383) and runs `maxDepth + maxVolumeDepth` iterations. Furnace sphere maxDepth 2 + maxVolumeDepth 400: 0.99997; megakernel vs wavefront per pixel 1.1e-6 (`vol-cornell-smoke`, caps 3 / 6). Default kernels byte-identical. Follow-up: the cloud scenes at maxDepth ~8 with a large `maxVolumeDepth`. | | V1.5 / V1.6 | Doc fixes (brick majorant is built, r16 grids; DIVERGES V243) and the wavefront per-pixel check of the phase-lobe scenes | agent | โœ… | `wf-p5-check vol-cl-single-mie10` / `vol-cl-sph-hg2-a99-t50`, 16 spp: relpx 2.3e-7 / 9.6e-7, 0 pixels over tolerance in plain / inline / batch. | | V1.7 | Offset-bound follow-ups (V341) | agent | โœ… (defensive; NEE light ends open) | `ptOffsetOriginScene` (scene-wide 4 gamma(7) R from the header's bounding sphere, ~2.4e-3 m on a 2 km scene) for ReSTIR G-buffer positions (DI `ptRsVisible`, GI visibility / secondary origins) and ReSTIR light end points; `rtSurface` with `positions: 'ray'` reports the same bound (`rayPositionError`, set from `!layout.positions`). +71 B on the 21 ReSTIR passes modules, every other kernel byte-identical. Interface skips need nothing: the free flight restarts at the true crossing (`volBack`), the skip origin only continues the ray (capped at 256 skips). No self-hit reproduced: new `restir-ground-sun` (2 km ground + sun) reads the closed form 0.41350 in every mode before the change; `vol-cl-ground-occluder` mode means bit-identical before / after. Open (maintainer): the same bound for megakernel / wavefront NEE light end points (changes every default kernel slightly; A/B: emissive 2 km ground + plate, NEE same seed before / after); a GPU self-hit counter page (hemisphere rays from decoded ground points) would be a sharper probe. Issue: [#12](https://github.com/pmndrs/pathtracer/issues/12). | -| V1.8 | DXC compile of the volume megakernels (45-51 KB alone, 52-56 KB with ReSTIR / spectral PBR) and of the wavefront split (media kernels <= 38.7 KB) on the RTX 3060, plus a D3D12 runtime check of the literal-bounded tracking loops | agent (Windows) | โฌœ | **Audit 2026-11-26:** [#9](https://github.com/pmndrs/pathtracer/issues/9). Handoff: [WINDOWS-HANDOFF W18](docs/internal/WINDOWS-HANDOFF.md#w18-volume-kernels-on-dxc-v18) (`kernel-compile` gained `set=wavefront`, `prefix=` and the `literal` nonce for it). Decides whether `ptwfAutoPolicy` sends media scenes to the wavefront on D3D12 (`PTWF_AUTO_KERNEL_LIMIT`) and the media row of V5.2. Mac reference (M5 Pro, Metal, quiet pass 2026-11-24, [REPORT](bench/results/quiet-pass/20261124-vol/REPORT.md)): megakernel cold median plain 207 ms (41.6 KB), vol-homogeneous 281 (45.3), vol-grid 364 (46.9), vol-grid-brick 443 (50.1), vol-grid-brick-decomp 451 (50.7), spectral-pbr 499-520 (56.2-56.6); wavefront largest kernel 141 ms (wf-plain shade) / 173 (media shade) / 274 (wf-vol-tex shade), set sums 259 (plain) to 512 (brick-decomp); cold flat over 5 repeats, warm ~1 ms. Metal is near linear in size; grid intersect / shadow kernels cost 2x their homogeneous twins at +1-4 KB. Issue: [#9](https://github.com/pmndrs/pathtracer/issues/9). | +| V1.8 | DXC compile of the volume megakernels (45-51 KB alone, 52-56 KB with ReSTIR / spectral PBR) and of the wavefront split (media kernels <= 38.7 KB) on the RTX 3060, plus a D3D12 runtime check of the literal-bounded tracking loops | agent (Windows) | โœ… (best effort) | **2026-12-02 ([report](bench/results/quiet-pass/20261202-win/REPORT.md)):** megakernel `vol-grid-brick-decomp` 2.05 s cold, worst media `vol-grid-equi-march4` 2.39 s (ratios to plain = Mac's); wavefront kernels <= 0.74 s each. Runtime wf/mk (plain / inline): vol-cornell-smoke 1.79 / 1.16, vol-grid-cloud 3.86 / 1.62, vol-milk-sphere 2.91 / 1.32, relpx <= 1.1e-6: no D3D12 loop-counter penalty. **Verdict: megakernel stays the media default on D3D12.** **Audit 2026-11-26:** [#9](https://github.com/pmndrs/pathtracer/issues/9). Handoff: [WINDOWS-HANDOFF W18](docs/internal/WINDOWS-HANDOFF.md#w18-volume-kernels-on-dxc-v18) (`kernel-compile` gained `set=wavefront`, `prefix=` and the `literal` nonce for it). Decides whether `ptwfAutoPolicy` sends media scenes to the wavefront on D3D12 (`PTWF_AUTO_KERNEL_LIMIT`) and the media row of V5.2. Mac reference (M5 Pro, Metal, quiet pass 2026-11-24, [REPORT](bench/results/quiet-pass/20261124-vol/REPORT.md)): megakernel cold median plain 207 ms (41.6 KB), vol-homogeneous 281 (45.3), vol-grid 364 (46.9), vol-grid-brick 443 (50.1), vol-grid-brick-decomp 451 (50.7), spectral-pbr 499-520 (56.2-56.6); wavefront largest kernel 141 ms (wf-plain shade) / 173 (media shade) / 274 (wf-vol-tex shade), set sums 259 (plain) to 512 (brick-decomp); cold flat over 5 repeats, warm ~1 ms. Metal is near linear in size; grid intersect / shadow kernels cost 2x their homogeneous twins at +1-4 KB. Issue: [#9](https://github.com/pmndrs/pathtracer/issues/9). | | X-trace-core | `trace-core scenes=cornell,quad-light sceneTrees=0` fails INTERMITTENTLY (~10-40% of runs) | open | โฌœ (flake, not a clouds regression) | 2026-11-24: fails on origin/main 9529dc3 too, and on every commit sampled back to before V302 (fa58050); pass / fail does not track load (9-40). Only set `shadow-masked` (mask 1) on format `bvh4-single-instanced`, both scenes. Bad rays come in runs of consecutive indices, totals mostly multiples of 32 (64, 160, 192, 224; also 1 or 2): whole 32-lane subgroups. The batch tracer says miss; the page's INLINE kernel (`rtClosestCone` + `rtVisible` + `rtSurface` ALL, workgroup 64) returns a zeroed record (t 0, instance 0, triangle 0, flags 3, material 0xffffffff, cone width = CONE.width), so `coneMismatch` always equals `inlineMismatch`. Theories (untested): Metal / Tint miscompile of the big inline kernel, `rtBoundWalkLoops` cap (gone since bvh 0.1.1: rerun before chasing it), an unwritten / racy output slot. Next: log inline + batch record, ray and mask on failure; re-dispatch the inline kernel several times in one page and diff (nondeterminism on identical input = GPU / compiler); try mask ALL for that set; bisect the kernel with `rtBoundWalkLoops` off and `rtSurface` reduced. Until then a trace-core failure counts only if it fails 3 of 3 reruns. Issue [#29](https://github.com/pmndrs/pathtracer/issues/29). | | X-seed | Consecutive render seeds are NOT independent: `ptPixelSeed` = hash(x ^ hash(y ^ seed)), so seeds whose XOR is below the image height reuse the same per-pixel streams on permuted rows | open | โฌœ (found by V7.6; the page `vol-forced-grid-check` now hashes its seeds) | 2026-11-26. Evidence: `vol-vdb-smoke`, 48 seeds x 1536 spp, the manual estimator against ITSELF on seeds 1000.. vs 3000..: z -5.5 with raw seeds, -1.6 with hashed seeds (grid-cloud -1.2, cl-cloud256 -1.6). Affects every seed-spread or z quoted from `pt_seed=0,1,2,..` style runs (error bars of an image MEAN too small; per-pixel noise is fine). Suggestion: hash the seed on the CPU in `PtMegakernel.setSeed` / `PtWavefront.setSeed` (no kernel text changes; every image of ours at a given seed changes, references do not). Pro: bench seeds become independent with no caller change. Con: stored own-renderer images / CSV rows at a seed are no longer reproducible bit for bit, the megakernel-vs-wavefront pages must apply it on both. Settles it: the control pair of `vol-forced-grid-check` (a case listed twice) with `hashseeds=0` before and after. | | V6.1 | glTF `KHR_materials_volume` absorption as a real medium (`bench/scenes/gltf-media.ts` `gltfVolumesAsMedia`; scene `AttenuationTest-notex-media`) | agent | โœ… | sigma_a = -ln(clamp(colour, 1e-6, 1)) / distance, sigma_s 0, inside the meshes of each non-thin transmissive material; the material keeps its dielectric part (no Beer absorber), so `integrator.volumes` accepts it. Against the material Beer absorber (`AttenuationTest-notex`), 256 spp: means within 0.006% per channel, relMSE 1.9e-4 (same seed), worst 60 px block 0.18%. Follow-ups: `KHR_materials_volume_scatter` in the glTF mapping (sigma_s, g), a medium stack for nested media (V6.2), a Mitsuba reference for saturated absorbers (V62). | @@ -302,7 +302,7 @@ Proposed 2026-11-15; each is a setting decided by A/B, never on in reference mod | VDB-P1.9 | Gate `vol-vdb-smoke` from its NanoVDB asset (`pt_grid_source=nanovdb,pt_nvdb=file`): `node bench/adapters/vdb-gate.ts --report ` | agent | โœ… passes | Issue [#69](https://github.com/pmndrs/pathtracer/issues/69) (pmndrs/vdb#41). **2026-11-30 (M5 Pro, Chrome 158 Metal, 128 x 128, 4096 spp, seed 0, correctness only):** (1) relMSE vs pbrt 4096 spp **3.737e-5** global majorant, **3.826e-5** brick (gate <= 4.84e-5 = the pbrt-vs-Mitsuba floor, re-measured 4.839e-5); (2) image mean within 2 SE of pbrt's: (ours - pbrt) / SE = -0.36, +0.42, +0.05 (brick -0.09, +0.68, +0.32), SE 3.3e-5 from the `vol_stderr` plane, OURS alone (pbrt's noise not added: stricter on us); (3) one storage binding for grid data: `@group(2) @binding(16) var vdbPool`, no `texture_3d` (`nanovdb.test.ts`, `vdb-nanovdb.test.ts`); (4) megakernel vs wavefront per pixel <= 5.5e-7 (`wf-p5-check cases=vol-vdb-smoke-nanovdb-file,vol-vdb-smoke-nanovdb,vol-vdb-smoke-nanovdb-brick variants=plain,inline spp=16 tol=7e-5`, 0 pixels over). Controls in the same session: the dense grid reads the same 3.737e-5; `.nvdb` file vs the pool built in the page: bit-identical image. The `*-4096spp.pfm` references were missing on this Mac (git-ignored; only the sidecars were there): re-rendered with `node bench/references/render.ts --scenes vol-vdb-smoke --renderers pbrt,mitsuba --spp 4096` (same pbrt commit and patch; the floor reproduces). `bench/results/VOLUMES.md` row. **Rerun 2026-11-30 after VDB-P1.7's reader change** (one accessor per segment, cache `'lower'`; `--snapshots 16,64,256,1024` as before): 3.737e-5 global, 3.826e-5 brick, (ours - pbrt) / SE -0.36 / +0.42 / +0.05 (brick -0.09 / +0.68 / +0.32): unchanged to the last digit. The brick run of this gate is what caught VDB-P1.14 (cache `'lowerLeaf'`: 1.404e-2). | | VDB-P1.10 | A/B counters: brick vs `nodeMax` majorants, NanoVDB vs dense vs atlas, on `vol-vdb-wdas-cloud`, `vol-vdb-bunny-cloud`, `vol-cl-cloud256` (`node bench/adapters/nanovdb-counters.ts`, CPU, seeded; [COUNTERS.md](bench/results/nanovdb-counters/COUNTERS.md)) | agent | ๐ŸŸจ counters done 2026-11-30; **timing open (quiet pass)**; no DECISIONS change | Issue [#70](https://github.com/pmndrs/pathtracer/issues/70) (pmndrs/vdb#42). The tracking loops are run on the CPU as the kernels write them (ratio tracking over the whole chord, delta tracking to the first real collision), 576 camera rays + 576 sun rays per scene, 4 repeats; the runs match the closed form (sigma_t x integral of the bound) to 1%. **Majorants** (camera rays, transmittance walk; steps / lookups / nulls per ray): wdas global 1 / 83.1 / 77.9, brick 21.9 / 16.8 / 11.5, nodeMax 18.8 / 23.9 / 18.5 (+ 171 tree queries per ray for the walk itself); bunny global 1 / 187 / 184, brick 28.8 / 9.84 / 7.01, nodeMax 26.1 / 16.2 / 13.3 (+ 236); cloud256 global 1 / 128 / 116, brick 32.0 / 16.1 / 3.77, nodeMax 14.4 / 19.6 / 7.22 (+ 130). So bricks give 1.2-1.6x fewer density lookups than nodeMax everywhere and 5-19x fewer than global; nodeMax needs no extra data and takes fewer steps (0.45-0.9x), but each step costs tree queries (5-9 per step) where a brick step is one word. **Storage** (reads per density lookup at the brick walk's collisions): dense 8 texels, atlas 9, NanoVDB lean reader 42-49 pool words with a new accessor per lookup (as VDB-P1.7 builds it; 15 of them are the accessor's set-up) and 22-30 with one accessor per ray (not built: V345). Taps that straddle a leaf face make the one-leaf cache miss on every tap (8 descents of 8 words). **Update 2026-11-30 (pmndrs/vdb P1.16, built in VDB-P1.7):** with one accessor per segment and the lower-node cache the kernels read 23.1-25.9 words per lookup on the transmittance walk and 24.1-27.4 on the free flight (23.4-26.8 and 26.0-31.7 with the accessor's 15 words spread over the segment's lookups: a flight has only 0.9-3.8 lookups; 46-72% of the flights have none and read no accessor); cache `'lowerLeaf'` reads 12.0-13.9 (12.5-15.8 on the flight) but is not the default (VDB-P1.14). pmndrs/vdb measured 23.6-25.0 and 11.7-14.0 with its own counter on 576 random chords of the same grids: within 1.4 words of ours, and its counter (`LeanReadCounter`), run next to ours on our rays, agrees on every lookup (words, distinct words, value), so the gap is the rays. Kernel text: +0.2-0.3 KB over the first build (COUNTERS.md). **Memory**: dense r32float 15.9 / 72.3 / 64.0 MB; atlas + indirection 0.48x / 0.45x / 0.37x of it (half again at r16float); NanoVDB image 0.35x / 0.31x / 0.24x (f32 values) + the brick range (<= 0.15 MB). The pool's `align: 'pathtracer'` bricks equal `brickMajorants` value for value on all three. A word of a storage buffer and a texel of a 3D texture do not cost the same: the decision needs the timing A/B (QUIET-PASS: `wf-p5-check timing=1` / `matrix.ts` on these scenes with `pt_volume_majorant=brick` x {dense, `pt_grid_layout=atlas`, `pt_grid_source=nanovdb`}). Best-effort hint only, loaded machine (load 60+), NOT a result: the 4096 spp `vol-vdb-smoke` page ran 38 s with the pool and the global majorant, 18 s with the pool and bricks, 9 s dense. Not built here: `nodeMax` in our kernels (needs the vendored `march` module, ~30 KB), `pool.buildMajorant`, the unchecked accessor init (`vdbAccessorInitUnchecked`: 8 words in place of 15 per segment). `majorantWalk` (the nodeMax CPU twin) is not a public export of `@pmndrs/vdb`: the script imports `dist/tools/internal.js` by path and drops the row when it is missing. | | VDB-P1.11 | The bench takes `@pmndrs/vdb` as a package instead of the sibling path; stale `CLAUDE.md` traps fixed; `convertVdbFile` reads all three voxel sizes | agent | โœ… | **2026-12-02:** `bench/package.json` takes `@pmndrs/vdb ^0.2.0` from npm (0.2.0 has `./tools`, `layout: 'x-fastest'`, `cache`, `keep`); typecheck and `pnpm test` pass on Windows, the nanovdb kernel variants build there. Issue [#71](https://github.com/pmndrs/pathtracer/issues/71) (pmndrs/vdb#43). **Done 2026-11-30:** `vdb-grid.ts`, `vdb-worker.ts` import `parseVdb` from `@pmndrs/vdb/tools` (no `WEBVDB_DIR`, no `nodeImport`, no `/@fs/` URL; `webVdbRoot()`, `__BENCH_WEBVDB__`, `toolsUrl` deleted); the smoke sample is a pinned download (`bench/assets/MANIFEST.json` `vdb-smoke-sample`, sha256 09e5727d..., `node bench/assets/fetch.ts --only vdb-smoke-sample`); `vdb-grid.test.ts` runs in process; `vdb-convert.ts` `source.voxelSizeXYZ` and per-axis bounds (`vdb-convert.test.ts`: voxel 0.5 x 1 x 2, fails on the x-only code). Checked with `WEBVDB_DIR` unset: `vdb-grid.test.ts` + `vdb-convert.test.ts` pass, the regenerated `vdb-smoke.f32` is byte-identical (sha256 216333b2...), `node bench/runner/run.ts --page vdb-browser --no-lock --args expect=` PASS. **The one step left** (after `@pmndrs/vdb@0.2.0` is published): in `bench/package.json` replace `"@pmndrs/vdb": "link:../../WebVDB/packages/vdb"` (devDependencies) with `"@pmndrs/vdb": "^0.2.0"` (dependencies, next to `@pmndrs/bvh`), `pnpm install`, commit `bench/package.json` + `pnpm-lock.yaml`; `linkedVdbRoot()` in `bench/runner/server.ts` then returns null by itself (keep it: a local override still works) and the `link:` trap in CLAUDE.md goes. Then rerun `pnpm test`, `node bench/size-snapshot.ts`, `vdb-browser`, and the VDB-P1.7 / P1.9 commands. Until then the link needs a WebVDB checkout with `pnpm build` done (its `dist/` on this Mac was stale on 2026-11-30: no `tools/`). The adapter loads `vdb-nanovdb.ts` by URL, so the hosted showcase build does not need the package either way. **2026-11-30:** VDB-P1.7 now uses `cache`, `keep` and `layout: 'x-fastest'`, which are in `@pmndrs/vdb` main since 32a62a2 (0.2.0 will have them): until the npm step the link must point at a build of that main or later (`vdb-nanovdb.test.ts` and `vdb-nanovdb-bake.test.ts` fail on an older `dist`: it would read our arrays as x-major). | -| VDB-P1.13 | DXC compile of the NanoVDB media kernels on the Windows machine (`kernel-compile` with `vol-grid-nanovdb*` variants) | agent (Windows) | โฌœ | Issue [#72](https://github.com/pmndrs/pathtracer/issues/72) (pmndrs/vdb#44). Not run: needs the RTX 3060 laptop and VDB-P1.11's npm step (no WebVDB checkout there). Ready since 2026-11-30: `nanovdbKernelVariants` in `bench/kernel-variants.ts` (`vol-grid-nanovdb`, `-brick`, `-brick-decomp`: the megakernel and the five wavefront kernels of each; 18 files of `node bench/size-snapshot.ts`, skipped when the package is missing) and `node bench/runner/run.ts --page kernel-compile --args prefix=vol-grid-nanovdb` (wavefront: `set=wavefront prefix=wf-vol-grid-nanovdb`; the page loads `@pmndrs/vdb` only for a nanovdb filter; both compile on Metal). Sizes (Mac, shipped text, one accessor per segment + cache `'lower'`): megakernel 50.1 KB global / 54.1 KB brick / 55.0 KB brick + minima against 46.9 / 50.1 / 50.8 KB dense, so every nanovdb media megakernel is at or over the ~50 KB DXC class; wavefront intersect 21.4-25.7 KB, shadow 20.0-23.7 KB. The vdb module's `keep` option does not bring them down: our `prune` already drops what the entry point does not reach, so `keep` moves the shipped bytes by 0-2 (COUNTERS.md, kernel text). The +3.2 to +4.2 KB over dense are functions the kernels call (the brick walk's init and step, the descent, the sampler, the accessor init). | +| VDB-P1.13 | DXC compile of the NanoVDB media kernels on the Windows machine (`kernel-compile` with `vol-grid-nanovdb*` variants) | agent (Windows) | โœ… (best effort) | **2026-12-02 ([report](bench/results/quiet-pass/20261202-win/REPORT.md)):** megakernel `vol-grid-nanovdb` 3.3 s, `-brick` 4.3 s, `-brick-decomp` 4.3 s cold (about 2x the dense kernels); wavefront kernels <= 0.76 s each, ~2.2 s per set. In W18's 3-10 s band: nanovdb scenes to the wavefront on D3D12 unless a runtime A/B says otherwise (not measured). Issue [#72](https://github.com/pmndrs/pathtracer/issues/72) (pmndrs/vdb#44). Not run: needs the RTX 3060 laptop and VDB-P1.11's npm step (no WebVDB checkout there). Ready since 2026-11-30: `nanovdbKernelVariants` in `bench/kernel-variants.ts` (`vol-grid-nanovdb`, `-brick`, `-brick-decomp`: the megakernel and the five wavefront kernels of each; 18 files of `node bench/size-snapshot.ts`, skipped when the package is missing) and `node bench/runner/run.ts --page kernel-compile --args prefix=vol-grid-nanovdb` (wavefront: `set=wavefront prefix=wf-vol-grid-nanovdb`; the page loads `@pmndrs/vdb` only for a nanovdb filter; both compile on Metal). Sizes (Mac, shipped text, one accessor per segment + cache `'lower'`): megakernel 50.1 KB global / 54.1 KB brick / 55.0 KB brick + minima against 46.9 / 50.1 / 50.8 KB dense, so every nanovdb media megakernel is at or over the ~50 KB DXC class; wavefront intersect 21.4-25.7 KB, shadow 20.0-23.7 KB. The vdb module's `keep` option does not bring them down: our `prune` already drops what the entry point does not reach, so `keep` moves the shipped bytes by 0-2 (COUNTERS.md, kernel text). The +3.2 to +4.2 KB over dense are functions the kernels call (the brick walk's init and step, the descent, the sampler, the accessor init). | | VDB-P1.14 | Apple Metal renders the brick megakernel with `volumes.outputs` wrong when the pool's reader caches the lower node AND the leaf (`cache: 'lowerLeaf'`) and the kernel keeps one accessor per segment | agent | โฌœ found 2026-11-30; the default (`cache: 'lower'`) avoids it | No issue yet. M5 Pro, Chrome 158.0.8127.88, Metal. `vol-vdb-smoke`, brick majorants, `pt_volume_outputs=1`, `pt_nvdb_cache=lowerLeaf`: the image is wrong in the columns left and right of the smoke (a grey 0.400 reads 0.195 / 0.190 / 0.153, and other garbage after a small change of the kernel text), image mean 0.483 / 0.482 / 0.478 for 0.5026, `vdb-gate.ts` relMSE 1.404e-2 (gate 4.84e-5); `vol_order01` is off while `vol_transmittance` and `vol_scatter_fraction` are bit-identical. The SAME kernel text is right on SwiftShader (relMSE 3.3e-15 against the dense kernel at 8 spp; `PT_CHROME_FLAGS="--use-webgpu-adapter=swiftshader --enable-unsafe-swiftshader" PT_ALLOW_SOFTWARE_ADAPTER=1`), and on Metal each of these is right: cache `'lower'` or `'leaf'`, accessor `'lookup'`, no `outputs`, the global majorant, the wavefront kernels (`wf-p5-check` `vol-vdb-smoke-nanovdb-brick-lowerleaf` <= 5.5e-7). So it is the Metal toolchain (Tint's MSL writer or Apple's compiler) on this 56 KB megakernel, not the WGSL; not narrowed further. Repro (30 s): `node bench/adapters/matrix.ts --renderers pt-megakernel --scenes vol-vdb-smoke --spp 64 --load-wait 0 --name a --extra pt_volume_majorant=brick`, the same with `--name b --extra pt_grid_source=nanovdb,pt_volume_majorant=brick,pt_volume_outputs=1,pt_nvdb_cache=lowerLeaf`, then `node bench/adapters/nanovdb-check.ts --pair b,a` (relMSE 1.7e-2; 6.7e-16 with `pt_nvdb_cache=lower`). To do: bisect the kernel text (which inlined copy of `ptVolTrBrick`, the two extra fields of `VdbAccessor`), try Chrome Canary and `--dawn metal` with toggles, report to Dawn if it reduces. Then `'lowerLeaf'` can become the default: 12-14 pool words per lookup against 23-26 (COUNTERS.md). Until then every reader or module option change reruns `vdb-gate.ts` on the BRICK report: the same-seed pair checks and `wf-p5-check` run without `outputs` and do not see this. | ## P5 โ€” Tracing support for gi's Split Radiance Cascades (`docs/internal/design/split-rc-tracing.md`; the technique is gi's, D3) @@ -415,15 +415,15 @@ ORT-Web, WebNN. | ID | Item | Owner | Status | Notes | |---|---|---|---|---| -| X1.i | Wide BVH integration into the default trace path (BVH4 on Sponza-class, CWBVH8 on Bistro-class, D25) | agent | ๐ŸŸจ | **Audit 2026-11-26:** default decision: [#30](https://github.com/pmndrs/pathtracer/issues/30). 2026-11-19, with bvh 0.1.0 from npm (X4): `SceneFormat` takes bvh's `NodeFormat` (`bvh4`, `cwbvh8`) plus `wideDecode` (default `folded`) and `wideWalk`; `sceneFormatOf`, every kernel (megakernel, wavefront intersect / shadow, batch, interval) compile the wide walk, `setScene` throws on a node-format mismatch; the wide walks' loops are literal-bound (V294: our rewrite until bvh 0.1.1 wrote them that way itself; unmeasured on D3D12). Bench: `pt_bvh=bvh4\|cwbvh8` `pt_bvh_decode` `pt_bvh_walk` (competitor / matrix), `trace-timing nodeFormat= wideDecode= wideWalk=`, `trace-core` runs 5 wide variants and `treesFormat=` (SceneTrees): 0 mismatches on all four scenes. Binding budget unchanged (same 3 buffers); kernel text +4.2..5.4 KB (plain megakernel 40.7 KB -> bvh4 45.3, cwbvh8 44.9, bvh4 single 46.1): a wide kernel with the heavier material features goes over 50 KB and `ptwfAutoPolicy` sends it to the wavefront. **Default stays binary quantized**: bvh 0.1.0 has no per-scene heuristic (`'auto'` not built), and the 3060 / Bistro numbers are open. M5 Pro provisional: see D33. Left: RTX 3060 run of the formats (QUIET-PASS), a Bistro-class scene, picking the default from those. **3060 first look 2026-11-19 (provisional: loaded machine, SM clock ~1300 MHz under load, samples=2 batchSeconds=0.1), `trace-timing scene=sponza-white`, Mrays/s primary / bounce / shadow / AO:** Chrome D3D12 quantized 166 / 76 / 106 / 156, bvh4 174 / 80 / 122 / 195, cwbvh8 168-194 / 58-78 / **38-45 / 48-53**. The cwbvh8 ANY-HIT walk is 2.4-3x slower than binary on D3D12 only: dawn.node D3D12 reads the same (43 / 51), `disable_robustness` (42 / 48) and `d3d12_dont_use_shader_model_66_or_higher` (40 / 49) do not help, the loops are bounded (`walk-loops.test.ts`), and dawn.node **Vulkan on the same GPU** gives cwbvh8 140 / 190 against binary 112 / 152 (1.25x faster). So it is DXC codegen of the cwbvh8 any-hit walk, not P-W1's loop counter: for the bvh side. HLSL / DXIL dump (reproduce: `node bench/runner/run.ts --page trace-timing --gpu nvidia --dawn d3d12 --dawn-toggles allow_unsafe_apis,dump_shaders --verbose --no-csv --args scene=sponza-white nodeFormat=cwbvh8 timing=batch samples=2`; the closest-hit and any-hit kernels are the two "Dumped generated HLSL" blocks): both kernels have the same skeleton (3 loops, the 64-entry stack as one `alloca [64 x i32]`, no Tint loop counters); the any-hit side differs in its leaf tests being `bool` functions that `return true` from inside the nested loop. Hypothesis only (register pressure / control flow DXC handles badly), not measured. Contradicts the M5 suggestion (cwbvh8) for Windows; default stays binary (D33) and nothing was changed here. Megakernel smoke (64 spp, 1 run, unpaired): Sponza 77 vs 78 ms/spp binary vs cwbvh8, images agree (means to 1e-6); the paired run is still the quiet pass Issue [#30](https://github.com/pmndrs/pathtracer/issues/30). | +| X1.i | Wide BVH integration into the default trace path (BVH4 on Sponza-class, CWBVH8 on Bistro-class, D25) | agent | ๐ŸŸจ | **3060 (2026-12-02, [report](bench/results/quiet-pass/20261202-win/REPORT.md), rays thermal INVALID):** cwbvh8/quantized primary 0.86-0.91, bounce 0.87-0.90, shadow 0.36-0.38, AO 0.28-0.29; bvh4 about level (0.92-1.20). Megakernel ms/spp vs binary: Cornell cwbvh8 0.77 / bvh4 0.92, Sponza 1.11 / 1.01. Suggestion: binary stays the D3D12 default; cwbvh8 only where any-hit is rare and the platform is not D3D12. **Audit 2026-11-26:** default decision: [#30](https://github.com/pmndrs/pathtracer/issues/30). 2026-11-19, with bvh 0.1.0 from npm (X4): `SceneFormat` takes bvh's `NodeFormat` (`bvh4`, `cwbvh8`) plus `wideDecode` (default `folded`) and `wideWalk`; `sceneFormatOf`, every kernel (megakernel, wavefront intersect / shadow, batch, interval) compile the wide walk, `setScene` throws on a node-format mismatch; the wide walks' loops are literal-bound (V294: our rewrite until bvh 0.1.1 wrote them that way itself; unmeasured on D3D12). Bench: `pt_bvh=bvh4\|cwbvh8` `pt_bvh_decode` `pt_bvh_walk` (competitor / matrix), `trace-timing nodeFormat= wideDecode= wideWalk=`, `trace-core` runs 5 wide variants and `treesFormat=` (SceneTrees): 0 mismatches on all four scenes. Binding budget unchanged (same 3 buffers); kernel text +4.2..5.4 KB (plain megakernel 40.7 KB -> bvh4 45.3, cwbvh8 44.9, bvh4 single 46.1): a wide kernel with the heavier material features goes over 50 KB and `ptwfAutoPolicy` sends it to the wavefront. **Default stays binary quantized**: bvh 0.1.0 has no per-scene heuristic (`'auto'` not built), and the 3060 / Bistro numbers are open. M5 Pro provisional: see D33. Left: RTX 3060 run of the formats (QUIET-PASS), a Bistro-class scene, picking the default from those. **3060 first look 2026-11-19 (provisional: loaded machine, SM clock ~1300 MHz under load, samples=2 batchSeconds=0.1), `trace-timing scene=sponza-white`, Mrays/s primary / bounce / shadow / AO:** Chrome D3D12 quantized 166 / 76 / 106 / 156, bvh4 174 / 80 / 122 / 195, cwbvh8 168-194 / 58-78 / **38-45 / 48-53**. The cwbvh8 ANY-HIT walk is 2.4-3x slower than binary on D3D12 only: dawn.node D3D12 reads the same (43 / 51), `disable_robustness` (42 / 48) and `d3d12_dont_use_shader_model_66_or_higher` (40 / 49) do not help, the loops are bounded (`walk-loops.test.ts`), and dawn.node **Vulkan on the same GPU** gives cwbvh8 140 / 190 against binary 112 / 152 (1.25x faster). So it is DXC codegen of the cwbvh8 any-hit walk, not P-W1's loop counter: for the bvh side. HLSL / DXIL dump (reproduce: `node bench/runner/run.ts --page trace-timing --gpu nvidia --dawn d3d12 --dawn-toggles allow_unsafe_apis,dump_shaders --verbose --no-csv --args scene=sponza-white nodeFormat=cwbvh8 timing=batch samples=2`; the closest-hit and any-hit kernels are the two "Dumped generated HLSL" blocks): both kernels have the same skeleton (3 loops, the 64-entry stack as one `alloca [64 x i32]`, no Tint loop counters); the any-hit side differs in its leaf tests being `bool` functions that `return true` from inside the nested loop. Hypothesis only (register pressure / control flow DXC handles badly), not measured. Contradicts the M5 suggestion (cwbvh8) for Windows; default stays binary (D33) and nothing was changed here. Megakernel smoke (64 spp, 1 run, unpaired): Sponza 77 vs 78 ms/spp binary vs cwbvh8, images agree (means to 1e-6); the paired run is still the quiet pass Issue [#30](https://github.com/pmndrs/pathtracer/issues/30). | | X4 | Depend on the published `@pmndrs/bvh` 0.1.0 (and `@pmndrs/downsampler` 0.1.0 in the bench) from npm, linked checkouts for development only (D33) | agent | โœ… | 2026-11-19: `packages/raytracer` and `bench` take `^0.1.0`; link recipe in CLAUDE.md. Breakage from the new version: only `TraceSceneBuffers.nodeFormat` widened to `NodeFormat` (typecheck in 11 bench pages / the adapter), fixed by `SceneFormat` / `ResolvedSceneFormat`. Checks: typecheck, 1306 tests, `trace-core` (all scenes, 0 mismatches; ties 15,331 against 15,414 before, grazing 9,228 and t_position 3,444 unchanged), `scene-copy` (also fixed its stale `dispersion` field), images before / after at 256 spp: 6 of 7 per-pixel identical, cornell 9 and sponza-white 12 of 0.8M / 2.8M values differ (closest-hit tie order, bvh's 0.1.0 fix), kernel text +24 bytes in the 150 of 322 variants that contain the walk (the tie test), none crosses 50 KB (29 were over before and after). Megakernel ms/spp, min of 5 (load 4.5-5.3): cornell 13.57 -> 13.55, sponza-white 47.40 -> 47.54 (a wash on Apple). Also fixed: `resampleTexture` copied a byte texture with `Uint8Array.from(.., fn)` (6 s for 24 textures of 1024^2, now memcpy) | | X5 | `@pmndrs/downsampler` where it replaces or improves our code | agent | โœ… | 2026-11-19. (a) **Texture mips (done, D34: the GPU path is the library default; `@pmndrs/downsampler` is a dependency of `@pmndrs/raytracer`)**: our CPU chain (`downsampleBytes`) is the only mip producer. `TextureOptions.mips: 'gpu'` + `uploadSceneCopy({ mipGenerator: new Downsampler(device) })` (structural type `RtMipGenerator`) fills levels 1+ on the GPU: `--page downsampler-check` compares every level of every bucket with the CPU chain (level 0 identical, levels 1+ within 2 codes, 4-12% of sRGB bytes and 15-75% of linear bytes differ by 1-2; the library is closer to the exact box mean, 0.28 against 0.45 codes) and times both (24 textures, 1024^2: 250 -> 30 ms, 2048^2: 1007 -> 121 ms, provisional). `pt_mips=gpu` runs a scene end to end (`tex-checker-hf`: per-pixel identical). `mips: 'cpu'` stays as a setting (V295, D34). (b) **Auto-exposure**: `PipelineArm.tonemap('auto')` reduces the `final` stage's mean log luma with `ScalarReduction` (two dispatches, no readback) into the tonemap uniform; `realtime-pipeline autoExposure=1`: GPU 4.48700 against CPU twin 4.48700 (rel 2e-7), `--page downsampler-check` on 1920x1081: 6e-8, texel count exact at an odd size. (c) Hi-Z: nothing in our code builds a depth pyramid (the chain's depth guide goes to the upscaler); the first user will be `gi` / `reflections`, whose own Hi-Z is their business. **Windows (W16) done 2026-11-19**, RTX 3060 Laptop, Chrome 157 / D3D12, driver 592.00 (machine loaded: CPU 75-97% busy, another agent's headless Chrome on the GPU; correctness is not affected, the times are provisional): PASS, level 0 identical, levels 1+ within 2 codes of the CPU chain on every path (`sample`, `load`, and the sRGB render path, forced with `renderPathMinTexels: 1`; `outputPath()` confirms buffer vs render per bucket in `notes.mipsPaths_*`); default generator = explicit Downsampler (0 bytes); exposure 2.8e-7, mean 8e-8. sRGB render vs buffer path: with `averageAccess: 'load'` 68 bytes differ (max 1 code, float ties as the library documents); with the default `'sample'` 63,588 bytes (0.63% of all sRGB bytes, max 2 codes), from NVIDIA's hardware bilinear sampler (the render path samples every level, the buffer path computes in-tile levels exactly): not the library's "same bits", but inside the 2-code bar, so D34 stands on D3D12. Chains of 1920x1080+ texels take the render path by default, i.e. real 2048^2 textures. Load time (wall, loaded CPU): 24 textures 1024^2 1177 -> 213 ms (5.5x), 2048^2 5680 -> 918 ms (6.2x). Left: time-smoothed exposure; tell the downsampler side about the sampled-render-path difference on NVIDIA. The Tier 1 gate check for the default was done (D34: IORTestGrid-A and the textured Tier 0/1 scenes unchanged) | | X6 | Clean room: ask the ThreeRT authors about NRD provenance and record the answer (D35) | maintainer | โœ… 2026-11-24 | Posted as [meshy-dev/ThreeRT#78](https://github.com/meshy-dev/ThreeRT/issues/78); the authors replaced the NRD-unverified passes and the code written from Unreal Engine source in `5cb95f6` (#268, `docs/PROVENANCE.md`) and ask downstream clean rooms to exclude everything before it. Fence revised accordingly (docs/internal/CLEAN-ROOM.md ยง4, D35). | | X7 | Tell the Denoiser sibling about the ThreeRT fence: its RULES.md lists ports by name; add "ThreeRT before `5cb95f6`" as fenced (D35, meshy-dev/ThreeRT#78) | ~/Developer/Denoiser (needs the maintainer's go-ahead to edit there) | โฌœ | **Audit 2026-11-26:** checked: the Denoiser's RULES.md and CLAUDE.md still have no ThreeRT entry; needs the maintainer's go to edit that repo. Issue [#60](https://github.com/pmndrs/pathtracer/issues/60). | -| W10 | DXC compile time of the megakernel / wavefront kernels on the RTX 3060 (D26) | agent (Windows) | โฌœ | decides whether the 50 KB kernel-size rule (`PTWF_AUTO_KERNEL_LIMIT`) moves; the full-feature albedo megakernel is 50.2 KB since D32. Page smoke-tested on the 3060 2026-11-19 (passes); timed run queued: QUIET-PASS "Windows / RTX 3060 queue" (~5-10 min) Issue [#34](https://github.com/pmndrs/pathtracer/issues/34). | -| W13 | P3 gate on the 3060: competitor table + Mrays/s + `pt-auto` choice (WINDOWS-HANDOFF W13) | agent (Windows) | โฌœ | closes the 3060 half of P3. Pages smoke-tested 2026-11-19 (all pass); timed chunks queued in QUIET-PASS "Windows / RTX 3060 queue"; W13a analysis needs the Mac reference PFMs copied over Issue [#34](https://github.com/pmndrs/pathtracer/issues/34). | +| W10 | DXC compile time of the megakernel / wavefront kernels on the RTX 3060 (D26) | agent (Windows) | ๐ŸŸจ measured (best effort); D26 decision open | **2026-12-02 (best effort, apps open, [report](bench/results/quiet-pass/20261202-win/REPORT.md)):** 70 megakernel variants, 5 repeats, flat (no cache answer; comment nonce confirms). Cold median: `plain` 0.95 s, `readable` 58.4 KB 0.94 s, `pbr-albedo` 1.5 s, media 1.5-2.4 s, `pbr-stochastic` 3.4 s, coated metal 3.5-4.1 s, `spectral-pbr-stochastic` 4.3 s, `pbr-albedo-fuzz-thinFilm` 7.7 s, **`pbr-stochastic-fuzz` 13.6 s**; size explains little (r 0.52). **Answer to the 50 KB question: no jump at 50 KB; DXC cost follows features (fuzz, stochastic layering, coated metal), worst/plain 14x vs 2.3x on the M5.** Suggestion: key the D3D12 auto policy on those features, or specialise the fuzz kernels. decides whether the 50 KB kernel-size rule (`PTWF_AUTO_KERNEL_LIMIT`) moves; the full-feature albedo megakernel is 50.2 KB since D32. Page smoke-tested on the 3060 2026-11-19 (passes); timed run queued: QUIET-PASS "Windows / RTX 3060 queue" (~5-10 min) Issue [#34](https://github.com/pmndrs/pathtracer/issues/34). | +| W13 | P3 gate on the 3060: competitor table + Mrays/s + `pt-auto` choice (WINDOWS-HANDOFF W13) | agent (Windows) | ๐ŸŸจ b + c done (best effort); a open | **2026-12-02 ([report](bench/results/quiet-pass/20261202-win/REPORT.md)):** (b) Mrays/s binary quantized: bounce 101 (gate 150 NOT met), primary 228, shadow 141-145, AO 206-217. (c) `pt-auto` fastest of ours on Cornell and Sponza (ties plain wavefront on Sponza; megakernel 1.44-1.54x / 1.18x slower); thermal INVALID, provisional. (a) competitors not run (1-2 h; analysis needs the Mac reference PFMs). closes the 3060 half of P3. Pages smoke-tested 2026-11-19 (all pass); timed chunks queued in QUIET-PASS "Windows / RTX 3060 queue"; W13a analysis needs the Mac reference PFMs copied over Issue [#34](https://github.com/pmndrs/pathtracer/issues/34). | | W17 | D3D12 correctness sweep: every check page on the RTX 3060 (Chrome 157, D3D12, driver 592.00); first run of the P3-P5 features under DXC | agent (Windows) | โœ… | **2026-12-02 rerun after the P5 / volumes / NanoVDB merges: 21 of 21 pages pass** (the 20 of 11-19 plus downsampler-check `big=0`; trace-core first try; wf-p5-check relpx <= 8e-7 on every case, vol-* and dispersion-test-d2 included; restir-check 13 min, vbuffer-check 21 min). vbuffer-check and wf-p5-check need `export-scenes.ts MetalRoughSpheres DispersionTest-notex` first. **2026-11-19: 20 of 20 pages pass** (smoke, caps, scene-copy, trace-core, bsdf-check, shade-check, pt-check, layered-check, openpbr-check, lobe-oracle, lod-check, texture-check, vbuffer-check, pt-outputs-check, realtime-check, wf-frame-check, wf-p5-check, rc-interval-check, materialx-check, restir-check), no DXC compile failure. Highlights: trace-core 1.33M rays 0 closest / visible mismatches, 0 watertight slips (all formats incl. bvh4 / cwbvh8); wf-frame-check Cornell wf vs mk 0 difference; wf-p5-check 8 media / spectral scenes x plain / inline / batch 0 mismatches (spectral per-channel up to 1.1e-4 = the XYZ cancellation, relpx under 1e-5). Three page bugs fixed on the way, none Windows-specific: (1) `layered-check` / `openpbr-check` were never updated for D32's `albedoCorrection: 'texture'` default (`layout: 'auto'` with group 0 only: "No bind group set at group index 2", then ~2000 flag mismatches of garbage); new `bench/pages/layer-corr-bind.ts` binds the table when the pipeline uses it, so the pages now test the default. (2) `rc-interval-check` counted a cross-instance coincident-face tie as an exactness failure (Cornell: box bottom on the floor, same f32 t, both interior; the range changes the walk's child order): `EdgeIndex.coplanarWorld` in `trace-compare.ts` accepts it, the failure note now prints both hits. (3) `downsampler-check` sRGB render path (W16). Not run here: `vol-vdb-smoke` (its grid comes from `~/Developer/WebVDB`, Mac only: copy `bench/assets/generated/volumes/vdb-smoke.{f32,json}` over). **Intel UHD (Chrome 157, D3D12; subgroups 8-16), same day: 15 of 19 pass** (vbuffer-check and restir-check not run: too slow there). Open, for the Mac / bvh side (no tolerance was changed here): (a) **trace-core**: ONE ray of 1.33M (Sponza `edges#7294`), identical in all 9 formats, so the triangle test, not the walk: the GPU hits tri 72111 at bary (1.1e-4, 0.318) (interior, t 2.0528), the f64 CPU walk and the RTX 3060 miss it and hit tri 74679 at t 2.0723. 1.1e-4 is far beyond f32 rounding of a sane triangle: Intel's compile of the edge function loses precision (thin triangle or cancellation; cf. the Metal fma trap, `bvhEdgeFunction`). (b) **bsdf-check**: 5 of 18,664 sampled values off by 0.7-1.2% (> 0.005), narrow lobes only (dielectric alpha 0.0625 pdf; conductor alpha 0.01 f and pdf at u.x 0.007): GPU transcendental / normalize precision on a narrow lobe, distribution not checked. (c) **rc-interval-check**: 4 Cornell `f32-indexed` boundary queries where the competing hit is 1 ulp away in t ON A VERTEX (bary ~2e-8, the box corner touching the floor): `sameOrTie` wants bit-equal t; whether a 1-ulp vertex touch is a tie is the interval contract's call. (d) **openpbr-check** passes but reads `aniso_frame_mismatch` 27 / 2000 and `layered_sample_mismatch` 1 (0 on the 3060). `wf-p5-check`: only `vol-vdb-smoke` Issue [#31](https://github.com/pmndrs/pathtracer/issues/31). | -| P4.5b | 30 fps gate on the RTX 3060L (`realtime-pipeline --gpu nvidia`) | agent (Windows) | ๐ŸŸจ | M5 estimate 23-32 fps without ReSTIR, 19-29 with. **Provisional 2026-11-19** (loaded machine, see X1.i; `scenarios=timing`, megakernel, binary BVH): sponza-white 960x540 -> 1080p, maxDepth 2: no ReSTIR 37.6 ms/frame (37.1-38.8; 26.6 fps), ReSTIR 43.4 ms (43.0-44.0; 23.1 fps). Split (no ReSTIR / ReSTIR): trace 33.0 / 37.6, pack 1.8 / 1.7, SVGF + composite 2.6 / 2.5, upscale 1.7 / 1.3, tonemap 0.2. The trace kernel is the whole gap to 30 fps. Quiet run + sponza-lamps still open Issue [#58](https://github.com/pmndrs/pathtracer/issues/58). | +| P4.5b | 30 fps gate on the RTX 3060L (`realtime-pipeline --gpu nvidia`) | agent (Windows) | ๐ŸŸจ measured (best effort) | **2026-12-02 ([report](bench/results/quiet-pass/20261202-win/REPORT.md), thermal valid, apps open):** sponza-white 31.5 ms (31.7 fps) NEE / 36.7 ms (27.3 fps) ReSTIR; sponza-lamps 33.8 ms (29.6 fps) / 39.3 ms (25.5 fps); trace 84-87% of the frame, SVGF + upscale ~2.7 ms. 30 fps only for sponza-white without ReSTIR. M5 estimate 23-32 fps without ReSTIR, 19-29 with. **Provisional 2026-11-19** (loaded machine, see X1.i; `scenarios=timing`, megakernel, binary BVH): sponza-white 960x540 -> 1080p, maxDepth 2: no ReSTIR 37.6 ms/frame (37.1-38.8; 26.6 fps), ReSTIR 43.4 ms (43.0-44.0; 23.1 fps). Split (no ReSTIR / ReSTIR): trace 33.0 / 37.6, pack 1.8 / 1.7, SVGF + composite 2.6 / 2.5, upscale 1.7 / 1.3, tonemap 0.2. The trace kernel is the whole gap to 30 fps. Quiet run + sponza-lamps still open Issue [#58](https://github.com/pmndrs/pathtracer/issues/58). | | P4.2d | ReSTIR candidates / spatial k / historyCap at equal chain cost after the denoiser (D32 sets 8 / 2 / 20 from the bias scans, not from an equal-time A/B) | โ€” | โฌœ | many-lights-256, lights-mix-lamps, sponza-lamps Issue [#58](https://github.com/pmndrs/pathtracer/issues/58). | | R1.v | R1's reduced base ignores `albedoCorrection` (V214): fit the reduced base weight or A/B `materialLod` vs `full` on the Tier 1 layered scenes | โ€” | โฌœ | up to +6% on a bright rough base at secondary vertices Issue [#55](https://github.com/pmndrs/pathtracer/issues/55). | | Q.opt | Optional quiet pass (docs/internal/QUIET-PASS.md): confirms D32's packing, correction cost, auto-policy constants and ReSTIR frame cost; add `pt-auto` to the baseline step's renderers | maintainer | optional | a disagreement reopens only that default Issue [#47](https://github.com/pmndrs/pathtracer/issues/47). | diff --git a/bench/results/quiet-pass/20261202-win/REPORT.md b/bench/results/quiet-pass/20261202-win/REPORT.md new file mode 100644 index 00000000..56124488 --- /dev/null +++ b/bench/results/quiet-pass/20261202-win/REPORT.md @@ -0,0 +1,161 @@ +# Windows / RTX 3060 queue, 2026-12-02 + +RTX 3060 Laptop (driver 592.00), Chrome 157.0.8103.79 headless, D3D12 / DXC. All runs `--gpu nvidia`, one at a time, after the D3D12 correctness sweep. + +**Conditions: best effort, not a quiet pass.** ChatGPT, Discord, Loom, Edge and the Claude app were open. There was no other headless Chrome: the queue waited for one from another session. CPU load1 was 1-6, and the card was 48-54 C at each start. + +**Thermal:** the runner's `nvidia-smi` note marks w15a, w13c and the Sponza half of w15b `thermal INVALID`. The software thermal slowdown (reason 0x20, CLAUDE.md Windows trap) appears within minutes. Treat those ratios as provisional. + +Script: `quiet-queue.sh` (session scratch). Commands are the QUIET-PASS "Windows / RTX 3060 queue" rows plus WINDOWS-HANDOFF W18 and VDB-P1.13. Run directories are under `bench/results/incoming/` (git-ignored). + +## Verdicts (the maintainer decides; suggestions only) + +| Item | Result | Suggestion | +|---|---|---| +| W10 / D26 (kernel size) | Cold DXC compile is driven by features, not bytes (r = 0.52 over 70 variants). `readable` (58.4 KB unminified) takes 0.94 s, the same as `plain` (40.6 KB, 0.95 s). `pbr-stochastic-fuzz` (52.9 KB) takes **13.6 s**, `pbr-albedo-fuzz-thinFilm` 7.7 s, `spectral-pbr-stochastic` 4.3 s, coated metal 3.5-4.1 s, `pbr-stochastic` 3.4 s and `pbr-albedo` 1.5 s. The worst / `plain` ratio is 14x, against 2.3x on the M5. Repeats are flat (repeat 1 / rest 0.98-1.2), warm is 2-11 ms, and the comment-only nonce gives no cache answer. | The 50 KB byte rule does not describe D3D12. Fuzz with the stochastic walk, and fuzz with thin film, are over 5 s and should be specialised kernels or go to the wavefront on D3D12. `ptwfAutoPolicy` could key on features (fuzz, stochastic layering, coated metal) instead of `kernelBytes`. | +| V1.8 (media on DXC) | Megakernel: `vol-grid-brick-decomp` (49.6 KB) 2.05 s, worst media `vol-grid-equi-march4` 2.39 s, `plain` 0.95 s. The ratios to `plain` match the Mac (decomp 2.2x). Wavefront: the heaviest full set (`wf-vol-grid-brick-decomp`) is ~1.3 s in all. Runtime (`wf-p5-check`, 64 spp, 5 rounds, relpx <= 1.1e-6): wf / mk is 1.79 / 1.16 (plain / inline) on vol-cornell-smoke, 3.86 / 1.62 on vol-grid-cloud and 2.91 / 1.32 on vol-milk-sphere. The megakernel is faster, so there is no D3D12 loop-counter penalty. | Under 3 s, and faster per sample: the megakernel stays the media default on D3D12 (W18 rule 1). | +| VDB-P1.13 (NanoVDB on DXC) | Megakernel: `vol-grid-nanovdb` (48.9 KB) 3.3 s, `-brick` (52.8 KB) 4.3 s, `-brick-decomp` (53.7 KB) 4.3 s, about 2x the dense-grid kernels. Wavefront: each kernel is at most 0.76 s, and a full set is ~2.2 s. | 3-10 s band: the W18 rule sends nanovdb scenes to the wavefront on D3D12, provided a runtime ratio (not measured here) does not forbid it. | +| W13b (Mrays/s gate) | Bounce (incoherent) 101 Mrays/s, primary 228, shadow 141-145, AO 206-217 (binary quantized, batch method, thermal valid). | Gate (>= 150) not met on the 3060 (it was 76 under load). | +| W14 / P4.5b (30 fps) | sponza-white 31.5 ms (31.7 fps) NEE, 36.7 ms (27.3 fps) ReSTIR; sponza-lamps 33.8 ms (29.6 fps) and 39.3 ms (25.5 fps). Trace is 84-87% of the frame, SVGF + upscale ~2.7 ms (thermal valid). | Only sponza-white without ReSTIR meets 30 fps. The trace kernel is the whole gap. | +| W15 / X1.i (wide BVH) | Rays (thermal INVALID), cwbvh8 / quantized: primary 0.86-0.91, bounce 0.87-0.90, shadow any-hit 0.36-0.38, AO 0.28-0.29. bvh4 / quantized: 0.92-1.20 (about level with binary). Megakernel ms/spp vs binary: Cornell cwbvh8 0.77 / bvh4 0.92 (valid); Sponza cwbvh8 1.11 / bvh4 1.01 (INVALID). | cwbvh8 cannot be the D3D12 default (any-hit 2.6-3.5x slower, closest-hit 10-14% slower). Keep binary quantized on Windows; bvh4 is a wash. | +| W13c (auto policy) | `pt-auto` is the fastest of ours on Cornell and Sponza. On Sponza it ties the plain wavefront (0.997-1.01). The megakernel is 1.44-1.54x slower on Cornell and 1.18x on Sponza. max_rel_pixel <= 3.1e-6 (thermal INVALID). | No per-device note needed. | +| P1.4c2a timing (bindless) | table / arrays: `fit` (6 buckets) 1.02 coherent, 1.05 divergent; `many` (20 groups vs arrays merged to 8) 0.63 / 0.76 (thermal valid). | A wash at a few buckets; the table wins when arrays would need merging. | + +The subagent's per-chunk tables follow. Its w10 section is the comment-nonce run only; the full W10 table is in TASKS W10. + + +Machine: RTX 3060 Laptop (driver 592.00), Chrome 157 headless D3D12, `--gpu nvidia`. Every run: load1 ~1-6 (cpu-delta), 0 GPU procs, background apps listed +(ChatGPT, Discord, Loom, Edge, claude), so every row is "best effort", never `loaded`. Start temps 48-54 C. Per-run thermal verdict is given per chunk; +"INVALID thermal" rows are provisional (CLAUDE.md rule). Run dirs: bench/results/incoming/. + +### w10-comment (20261201T175618Z-kernel-compile, nonce=comment, repeat 3; verdict no-verdict, 0 loaded samples) +| variant | bytes | cold per repeat ms | warm ms | +|---|---|---|---| +| plain | 41,625 | 958.8 / 678.7 / 622.8 | 2.4 / 4.6 / 2.1 | +| pbr-albedo-fuzz-thinFilm | 55.5 KiB | 8028.7 / 5112.6 / 5108.1 | ~7 | + +Cache check: no DXIL/driver cache answers a comment-only change. Repeats 2-3 are not 10-20x faster (that would be ~10 ms); fuzz-thinFilm stays at 5.1 s. +Repeat 1 is 1.4-1.6x slower than repeats 2-3 (first-use warm-up, not a cache). plain at repeats 2-3 (623-679) is 26-32% below the code-nonce plain of v18-mk (915-920): a small partial effect only. +warm (identical text) is 2-7 ms (in-process cache), so cold vs warm is the real cache signal and it is huge. +Side finding: the heaviest PBR variant (fuzz + thinFilm, 55.5 KiB) is 5.1-8.0 s cold on DXC, over the 3 s line of the W18 rule: a candidate for D26 (specialised kernel / wavefront). The full w10-compile table is being rerun. + +### v18-mk megakernel compile (20261201T175645Z-kernel-compile, nonce=code, repeat 5; no-verdict) +cold_ms_per_repeat is flat in every row (spread under 5%, one first-repeat outlier +18% on vol-grid-brick-stoch: 2324 vs ~1970): no cache answered. warm 2.2-7.8 ms. Mac = W18 table (plain 207 ms). +| variant | KB (bytes/1000) | cold min / med / max ms | warm | x plain (ours) | x plain (Mac) | +|---|---|---|---|---|---| +| plain | 41.6 | 915 / 920 / 986 | 2.2 | 1.00 | 1.00 | +| vol-homogeneous | 45.3 | 1477 / 1511 / 1526 | 6.3 | 1.64 | 1.36 | +| vol-grid | 46.9 | 1732 / 1745 / 1792 | 4.3 | 1.90 | 1.76 | +| vol-grid-brick | 50.1 | 1985 / 2031 / 2072 | 3.2 | 2.21 | 2.14 | +| vol-grid-stoch | 46.7 | 1652 / 1709 / 1739 | 6.2 | 1.86 | - | +| vol-grid-brick-stoch | 49.9 | 1967 / 1972 / 2324 | 3.1 | 2.14 | - | +| vol-grid-brick-decomp | 50.8 | 2022 / 2061 / 2149 | 3.3 | 2.24 | 2.18 | +| vol-homogeneous-forced | 46.4 | 1948 / 1993 / 2068 | 6.8 | 2.17 | - | +| vol-homogeneous-equi | 47.2 | 1976 / 2036 / 2070 | 3.1 | 2.21 | - | +| vol-grid-forced | 47.9 | 2281 / 2327 / 2416 | 3.4 | 2.53 | - | +| vol-grid-equi | 48.7 | 2311 / 2333 / 2405 | 7.8 | 2.54 | - | +| vol-grid-equi-march4 | 48.9 | 2335 / 2401 / 2451 | 5.0 | 2.61 (slowest media) | - | +| vol-grid-forced-fgrid / equi-fgrid / equi-march4-fgrid | 48.4-49.3 | 1967-2075 / 2003-2122 / 2030-2226 | 3-6 | 2.2-2.3 | - | +| vol-homogeneous-equi-fgrid | 47.2 | 1961 / 1995 / 2071 | 3.2 | 2.17 | - | +| spectral | 46.7 | 1368 / 1441 / 1474 | 7.6 | 1.57 | - | +| spectral-nodisp | 46.2 | 1412 / 1415 / 1444 | 2.7 | 1.54 | - | +| spectral-env | 49.5 | 1607 / 1631 / 1650 | 3.0 | 1.77 | - | +| spectral-tex | 50.3 | 1554 / 1584 / 1646 | 3.2 | 1.72 | - | +| spectral-pbr-albedo | 56.3 | 2243 / 2245 / 2293 | 3.8 | 2.44 | 2.51 | +| spectral-pbr-stochastic | 56.6 | 4252 / 4360 / 4522 | 9.9 | 4.74 | - | + +(The page's KB column is bytes/1024, about 2.4% below the figures above.) No vol-grid-nanovdb* variants appear in this run (the prefix list was plain,vol-,spectral); not in the table. + +Ratios to plain track the Mac's within ~0.1x for the anchors (decomp 2.24 vs 2.18, brick 2.21 vs 2.14, spectral-pbr-albedo 2.44 vs 2.51): DXC is not superlinear. Absolute cost is ~4.4x the Mac (plain 920 vs 207 ms) and roughly flat in size. +**W18 verdict rule:** heaviest media megakernel (vol-grid-brick-decomp) 2.06 s median (max 2.15 s); even the slowest media variant (equi-march4) is 2.40 s (max 2.45 s): UNDER 3 s, so the megakernel stays the media default on D3D12 as far as compile cost goes. Only non-media spectral-pbr-stochastic (4.4 s) sits in the 3-10 s band. `failed: {}`, no TDR or device loss. +Step 4 (runtime megakernel/wavefront ratio, v18-runtime) is being rerun; the verdict is conditional on it. + +### v18-wf wavefront compile (20261201T180033Z-kernel-compile, nonce=literal, repeat 5; no-verdict) +All flat across repeats; warm 0.4-2.1 ms. The `*-args` kernels use the comment nonce (7.6-8.5 ms, a cache answer, 1.1 KB: ignore). Cold median ms (Mac in brackets where W18 has it): +| variant | camera | intersect | shade | shadow | sum of 4 (args ~8 ms extra) | +|---|---|---|---|---|---| +| wf-plain | 35 | 165 | 501 [141] | 122 | ~820 | +| wf-vol-homogeneous | 36 | 213 | 651 [175] | 190 | ~1090 | +| wf-vol-ratio | 36 | 212 | 627 | 198 | ~1073 | +| wf-vol-grid | 36 | 236 [140] | 632 | 220 | ~1124 | +| wf-vol-grid-brick | 37 | 308 [165] | 647 | 283 | ~1275 | +| wf-vol-grid-stoch | 37 | 236 | 636 | 210 | ~1119 | +| wf-vol-grid-brick-decomp | 36 | 310 | 649 | 271 | ~1266 (+args ~1275; Mac 512) | +| wf-vol-tex | 37 | 216 | 744 [274] | 199 | ~1232 | + +Sizes 3.2-37.8 KiB (shade 29.6-37.8). Largest single kernel 744 ms (wf-vol-tex-shade); the heaviest full set (decomp) is ~1.28 s vs 2.06 s for its megakernel (-38% compile). Ours/Mac 2.4-3.7x per kernel (smaller multiple than the megakernel's 4.4x). + +### w13b trace-timing, Sponza-white, default (binary quantized) tree (20261201T180126Z-trace-timing; VALID: started 51 C, 0% throttled of 79) +| ray set | Mrays/s (batch method) | single-pass median-based | note | +|---|---|---|---| +| primary (l1_primary) | 228.4 | 228.4 | | +| incoherent bounce (l1_bounce) | 101.1 | 103.6 | gate >= 150: FAIL; previous loaded 76 -> +33% | +| shadow any-hit (l0_shadow) | 141.3 | 145.4 | | +| AO any-hit (l0_ao) | 205.7 | 216.9 | | + +Batch spread 1.02-1.03 (quiet); results_identical=1 for all four; 262,266 triangles, hit rate 99.5%. +Answer: gate NOT met on the 3060 with the binary tree: bounce 101 Mrays/s = 0.67x of the 150 target (consistent with the earlier 102 / 229 P-W1 read; 76 was the loaded value). + +### w14 realtime-pipeline (20261201T180202Z-realtime-pipeline; VALID: started 54 C, 0% of 94 samples throttled; load1 4.8, best effort) +Wall clock of batched submissions (the run labels it PROVISIONAL: no GPU timestamps), median of 5 rounds, megakernel, maxDepth 2, blue-noise realtime preset. +| scene / mode | frame ms (min-max) | fps | trace | pack | denoise+composite | upscale | tonemap | +|---|---|---|---|---|---|---|---| +| sponza-white NEE | 31.5 (31.1-31.8) | 31.7 | 26.4 | 1.56 | 1.68 | 0.99 | 0.11 | +| sponza-white ReSTIR | 36.7 (36.5-37.0) | 27.3 | 31.4 | 1.54 | 1.68 | 0.99 | 0.11 | +| sponza-lamps NEE | 33.8 (33.5-34.3) | 29.6 | 28.9 | 1.56 | 1.71 | 1.01 | 0.13 | +| sponza-lamps ReSTIR | 39.3 (39.2-39.6) | 25.5 | 34.3 | 1.55 | 1.75 | 1.02 | 0.12 | + +The path-tracing kernel is 84-87% of the frame; SVGF + upscale ~2.7 ms combined. ReSTIR adds +5.1 / +4.5 ms of trace. Previous loaded read for sponza-white: 37.6 / 43.4 ms, now 31.5 / 36.7 (-16%). +Answer: the 30 fps gate is met only by sponza-white without ReSTIR (31.7 fps). sponza-lamps NEE is 29.6 (0.4 fps short). All ReSTIR arms miss (25.5-27.3). Inside the M5 estimate (23-32 off, 19-29 on), at its top end. + +### w15a wide BVH, Sponza-white, B/A Mrays/s ratio, quantized = A, 3 repeats ABBA, min..max +Both runs verdict INVALID thermal (61% and 67% of loaded samples throttled; started 53 / 52 C; the A arm itself drifted 226 -> 205 primary). Provisional. Pairs = adjacent A/B in run order (A1B2, B3A4, A5B6). +| ray set | cwbvh8 / quantized | bvh4 / quantized | +|---|---|---| +| primary | 0.86..0.91 | 0.97..1.02 | +| bounce (incoherent) | 0.87..0.90 | 0.92..0.97 | +| shadow any-hit | 0.36..0.38 | 1.00..1.08 | +| AO any-hit | 0.28..0.29 | 1.12..1.20 | + +Absolute batch Mrays/s: quantized primary 205-226, bounce 92-100, shadow 126-139; cwbvh8 primary 176-196, bounce 79-88, shadow 47-49, ao 53-56; bvh4 primary 206-217, bounce 86-92, shadow 130-136, ao 213-225. results_identical=1 throughout. +Answer: CWBVH8 loses everywhere on D3D12: any-hit 2.6-3.5x slower (reproduces the trap) and closest-hit also 10-14% slower (the trap says closest-hit is fine: this differs). bvh4 is level with binary on closest-hit (3% faster to 8% slower), neutral to +8% on shadow, +12..20% on AO: no clear win, and the A-arm drift is the same size as most of it. + +### w15b matrix, pt-megakernel ms/spp (wall_ms / spp, 256 spp, 3 repeats, median (min-max)) +| scene | binary | cwbvh8 | bvh4 | cw8/bin | bvh4/bin | thermal verdict | +|---|---|---|---|---|---|---| +| cornell | 16.62 (16.44-16.67) | 12.77 (12.64-12.86) | 15.30 (15.07-15.30) | 0.77 (-23%) | 0.92 (-8%) | all three VALID (0% throttled, start 52-54 C) | +| sponza-white | 63.93 (61.63-65.16) | 70.73 (68.20-72.53) | 64.29 (61.93-65.58) | 1.11 (+11%) | 1.01 | all three INVALID thermal 58%; repeats rise ~6% within each cell | + +non_finite 0; mean_r identical across formats per scene (0.21275, 0.24614). Not a compile-excluded number: ms/spp is wall/spp (compile ~1.0 s binary / 1.05-1.1 s cw8 / 1.3 s bvh4 is reported separately as compile_ms; whether wall includes it is not stated by the adapter). +M5: cwbvh8 -26% Cornell, -16% Sponza. 3060: Cornell matches (-23%); Sponza has the opposite sign (+11%, provisional), consistent with w15a's slow wide any-hit (NEE shadow rays). cwbvh8 cannot be the default on D3D12. + +### w13c wf-sched-ab, ms/spp median over 5 rounds, ratio vs pt-auto min..max (both runs INVALID thermal: 79% cornell, 97.7% sponza) +| renderer | cornell ms/spp | ratio | max_rel_pixel | sponza-white ms/spp | ratio | max_rel_pixel | +|---|---|---|---|---|---|---| +| pt-auto | 12.78 | 1 | 0 | 59.31 | 1 | 0 | +| pt-megakernel | 18.84 | 1.44..1.54 | 3.1e-6 | 70.02 | 1.18..1.19 | 1.1e-6 | +| pt-wavefront | 13.89 | 1.01..1.13 | 0 | 59.14 | 1.00..1.01 (0.997 min) | 0 | +| pt-wf-refill | 14.02 | 1.01..1.11 | 0 | 67.42 | 1.13..1.15 | 0 | +| pt-wf-ordered | 14.38 | 1.08..1.13 | 0 | 63.40 | 1.06..1.08 | 0 | + +max_rel_pixel all <= 3.1e-6 (gate 1e-5 OK), non_finite 0. +Answer: pt-auto is the fastest of ours on both scenes (ties plain wavefront on Sponza). What it picked is not recorded in run.json or the log; the Sponza numbers say plain wavefront. On Cornell auto is 8% faster than plain wavefront with bit-identical pixels (unexplained; probably order/thermal, auto runs first each round of a 79%-throttled run). The megakernel is 1.2-1.5x slower than auto on this GPU. + +### bindless timing (20261201T182546Z-bindless-check, check=lookup timing=1 rounds=8; VALID: started 53 C, 0% of 14 samples throttled; load1 3.2, best effort) +Resource table over arrays, median ms per dispatch (65,536 lanes, 16 lookups, ABBA rounds): +| scene | coherent | divergent | +|---|---|---| +| fit (6 buckets) | 1.020 (0.0837 vs 0.0821 ms) | 1.053 (0.0794 vs 0.0754) | +| many (20 table buckets vs 8 array buckets) | 0.631 (0.0601 vs 0.0954) | 0.758 (0.1164 vs 0.1536) | + +Other forms (not the plain `table`): fit table1 coh 1.09 / div 3.68, tablewf coh 1.11 / div 1.70, table1wf div 6.09, tablewfmin div 5.91; many tablewf div 2.24, tablewfmin div 6.45 (the wave-fixed and single-bucket forms blow up on divergent lookups). +Answer: bindless table is a wash at 6 buckets (+2..5%) and 24-37% faster at 20 buckets on the real driver; plain `table` is the form to use, the table1 / wf forms are not. + +### Anomalies +- w15a (both), w13c (both) and w15b Sponza are INVALID thermal: the card throttles within minutes of back-to-back runs. The A-arm drift in w15a (-9%) is as large as the bvh4 effects, so only cwbvh8's any-hit result (0.28-0.38) is robust. +- w13c Cornell: pt-auto 8% faster than plain wavefront with bit-identical output; its pick is not logged. +- w15b Sponza cwbvh8 +11% against the M5's -16% (opposite sign, provisional). w15a cwbvh8 closest-hit 10-14% slower contradicts the CLAUDE.md trap line "closest-hit is fine". +- bindless `many`: table and arrays differ in 38k lanes (max abs 0.76) while both are within 0.005 of the CPU twin (bad_frac 0): the two arms use different bucket assignments (20 vs 8), so probably expected, but not explained in the run. `fit_*_tablefixsmp` also differs in 5-6k lanes (max 0.117) while matching the twin. +- v18-mk has no vol-grid-nanovdb* variants (prefix filter plain,vol-,spectral did not select them), so that part of the request has no rows. +- w10-comment repeat 1 is 1.4-1.6x slower than repeats 2-3: the cold-flat rule is met only by v18-mk (code nonce). +- Compile runs carry verdict no-verdict (0 loaded samples): not GPU-thermal sensitive, still best effort. From 080f551b6c2b285749d59bb634b36f52cc253b54 Mon Sep 17 00:00:00 2001 From: Dennis Smolek Date: Sat, 5 Dec 2026 03:27:41 +0900 Subject: [PATCH 6/6] W13a on the RTX 3060: competitor wall times (p3-gate-3060); equal-quality analysis needs the Mac references --- TASKS.md | 2 +- bench/results/quiet-pass/20261202-win/REPORT.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TASKS.md b/TASKS.md index 6b3a3c03..092953b8 100644 --- a/TASKS.md +++ b/TASKS.md @@ -421,7 +421,7 @@ ORT-Web, WebNN. | X6 | Clean room: ask the ThreeRT authors about NRD provenance and record the answer (D35) | maintainer | โœ… 2026-11-24 | Posted as [meshy-dev/ThreeRT#78](https://github.com/meshy-dev/ThreeRT/issues/78); the authors replaced the NRD-unverified passes and the code written from Unreal Engine source in `5cb95f6` (#268, `docs/PROVENANCE.md`) and ask downstream clean rooms to exclude everything before it. Fence revised accordingly (docs/internal/CLEAN-ROOM.md ยง4, D35). | | X7 | Tell the Denoiser sibling about the ThreeRT fence: its RULES.md lists ports by name; add "ThreeRT before `5cb95f6`" as fenced (D35, meshy-dev/ThreeRT#78) | ~/Developer/Denoiser (needs the maintainer's go-ahead to edit there) | โฌœ | **Audit 2026-11-26:** checked: the Denoiser's RULES.md and CLAUDE.md still have no ThreeRT entry; needs the maintainer's go to edit that repo. Issue [#60](https://github.com/pmndrs/pathtracer/issues/60). | | W10 | DXC compile time of the megakernel / wavefront kernels on the RTX 3060 (D26) | agent (Windows) | ๐ŸŸจ measured (best effort); D26 decision open | **2026-12-02 (best effort, apps open, [report](bench/results/quiet-pass/20261202-win/REPORT.md)):** 70 megakernel variants, 5 repeats, flat (no cache answer; comment nonce confirms). Cold median: `plain` 0.95 s, `readable` 58.4 KB 0.94 s, `pbr-albedo` 1.5 s, media 1.5-2.4 s, `pbr-stochastic` 3.4 s, coated metal 3.5-4.1 s, `spectral-pbr-stochastic` 4.3 s, `pbr-albedo-fuzz-thinFilm` 7.7 s, **`pbr-stochastic-fuzz` 13.6 s**; size explains little (r 0.52). **Answer to the 50 KB question: no jump at 50 KB; DXC cost follows features (fuzz, stochastic layering, coated metal), worst/plain 14x vs 2.3x on the M5.** Suggestion: key the D3D12 auto policy on those features, or specialise the fuzz kernels. decides whether the 50 KB kernel-size rule (`PTWF_AUTO_KERNEL_LIMIT`) moves; the full-feature albedo megakernel is 50.2 KB since D32. Page smoke-tested on the 3060 2026-11-19 (passes); timed run queued: QUIET-PASS "Windows / RTX 3060 queue" (~5-10 min) Issue [#34](https://github.com/pmndrs/pathtracer/issues/34). | -| W13 | P3 gate on the 3060: competitor table + Mrays/s + `pt-auto` choice (WINDOWS-HANDOFF W13) | agent (Windows) | ๐ŸŸจ b + c done (best effort); a open | **2026-12-02 ([report](bench/results/quiet-pass/20261202-win/REPORT.md)):** (b) Mrays/s binary quantized: bounce 101 (gate 150 NOT met), primary 228, shadow 141-145, AO 206-217. (c) `pt-auto` fastest of ours on Cornell and Sponza (ties plain wavefront on Sponza; megakernel 1.44-1.54x / 1.18x slower); thermal INVALID, provisional. (a) competitors not run (1-2 h; analysis needs the Mac reference PFMs). closes the 3060 half of P3. Pages smoke-tested 2026-11-19 (all pass); timed chunks queued in QUIET-PASS "Windows / RTX 3060 queue"; W13a analysis needs the Mac reference PFMs copied over Issue [#34](https://github.com/pmndrs/pathtracer/issues/34). | +| W13 | P3 gate on the 3060: competitor table + Mrays/s + `pt-auto` choice (WINDOWS-HANDOFF W13) | agent (Windows) | ๐ŸŸจ b + c done (best effort); a open | **2026-12-02 ([report](bench/results/quiet-pass/20261202-win/REPORT.md)):** (b) Mrays/s binary quantized: bounce 101 (gate 150 NOT met), primary 228, shadow 141-145, AO 206-217. (c) `pt-auto` fastest of ours on Cornell and Sponza (ties plain wavefront on Sponza; megakernel 1.44-1.54x / 1.18x slower); thermal INVALID, provisional. (a) **run 2026-12-04** (`p3-gate-3060`, 3 interleaved rounds, best effort): median wall time to the final spp: Cornell 1024 spp mutracer 13.8 s, pt-auto 32.9, tgpt-megakernel 34.3, tgpt-wavefront 42.1, pt-megakernel 48.7; sponza-white 512 spp pt-auto 82.2 s, pt-megakernel 94.6 (2 rounds), mutracer 125.8, tgpt-wavefront 294, tgpt-megakernel 311. Equal-quality times need `baseline.ts --report p3-gate-3060` with the Mac reference PFMs copied over (not on this machine). closes the 3060 half of P3. Pages smoke-tested 2026-11-19 (all pass); timed chunks queued in QUIET-PASS "Windows / RTX 3060 queue"; W13a analysis needs the Mac reference PFMs copied over Issue [#34](https://github.com/pmndrs/pathtracer/issues/34). | | W17 | D3D12 correctness sweep: every check page on the RTX 3060 (Chrome 157, D3D12, driver 592.00); first run of the P3-P5 features under DXC | agent (Windows) | โœ… | **2026-12-02 rerun after the P5 / volumes / NanoVDB merges: 21 of 21 pages pass** (the 20 of 11-19 plus downsampler-check `big=0`; trace-core first try; wf-p5-check relpx <= 8e-7 on every case, vol-* and dispersion-test-d2 included; restir-check 13 min, vbuffer-check 21 min). vbuffer-check and wf-p5-check need `export-scenes.ts MetalRoughSpheres DispersionTest-notex` first. **2026-11-19: 20 of 20 pages pass** (smoke, caps, scene-copy, trace-core, bsdf-check, shade-check, pt-check, layered-check, openpbr-check, lobe-oracle, lod-check, texture-check, vbuffer-check, pt-outputs-check, realtime-check, wf-frame-check, wf-p5-check, rc-interval-check, materialx-check, restir-check), no DXC compile failure. Highlights: trace-core 1.33M rays 0 closest / visible mismatches, 0 watertight slips (all formats incl. bvh4 / cwbvh8); wf-frame-check Cornell wf vs mk 0 difference; wf-p5-check 8 media / spectral scenes x plain / inline / batch 0 mismatches (spectral per-channel up to 1.1e-4 = the XYZ cancellation, relpx under 1e-5). Three page bugs fixed on the way, none Windows-specific: (1) `layered-check` / `openpbr-check` were never updated for D32's `albedoCorrection: 'texture'` default (`layout: 'auto'` with group 0 only: "No bind group set at group index 2", then ~2000 flag mismatches of garbage); new `bench/pages/layer-corr-bind.ts` binds the table when the pipeline uses it, so the pages now test the default. (2) `rc-interval-check` counted a cross-instance coincident-face tie as an exactness failure (Cornell: box bottom on the floor, same f32 t, both interior; the range changes the walk's child order): `EdgeIndex.coplanarWorld` in `trace-compare.ts` accepts it, the failure note now prints both hits. (3) `downsampler-check` sRGB render path (W16). Not run here: `vol-vdb-smoke` (its grid comes from `~/Developer/WebVDB`, Mac only: copy `bench/assets/generated/volumes/vdb-smoke.{f32,json}` over). **Intel UHD (Chrome 157, D3D12; subgroups 8-16), same day: 15 of 19 pass** (vbuffer-check and restir-check not run: too slow there). Open, for the Mac / bvh side (no tolerance was changed here): (a) **trace-core**: ONE ray of 1.33M (Sponza `edges#7294`), identical in all 9 formats, so the triangle test, not the walk: the GPU hits tri 72111 at bary (1.1e-4, 0.318) (interior, t 2.0528), the f64 CPU walk and the RTX 3060 miss it and hit tri 74679 at t 2.0723. 1.1e-4 is far beyond f32 rounding of a sane triangle: Intel's compile of the edge function loses precision (thin triangle or cancellation; cf. the Metal fma trap, `bvhEdgeFunction`). (b) **bsdf-check**: 5 of 18,664 sampled values off by 0.7-1.2% (> 0.005), narrow lobes only (dielectric alpha 0.0625 pdf; conductor alpha 0.01 f and pdf at u.x 0.007): GPU transcendental / normalize precision on a narrow lobe, distribution not checked. (c) **rc-interval-check**: 4 Cornell `f32-indexed` boundary queries where the competing hit is 1 ulp away in t ON A VERTEX (bary ~2e-8, the box corner touching the floor): `sameOrTie` wants bit-equal t; whether a 1-ulp vertex touch is a tie is the interval contract's call. (d) **openpbr-check** passes but reads `aniso_frame_mismatch` 27 / 2000 and `layered_sample_mismatch` 1 (0 on the 3060). `wf-p5-check`: only `vol-vdb-smoke` Issue [#31](https://github.com/pmndrs/pathtracer/issues/31). | | P4.5b | 30 fps gate on the RTX 3060L (`realtime-pipeline --gpu nvidia`) | agent (Windows) | ๐ŸŸจ measured (best effort) | **2026-12-02 ([report](bench/results/quiet-pass/20261202-win/REPORT.md), thermal valid, apps open):** sponza-white 31.5 ms (31.7 fps) NEE / 36.7 ms (27.3 fps) ReSTIR; sponza-lamps 33.8 ms (29.6 fps) / 39.3 ms (25.5 fps); trace 84-87% of the frame, SVGF + upscale ~2.7 ms. 30 fps only for sponza-white without ReSTIR. M5 estimate 23-32 fps without ReSTIR, 19-29 with. **Provisional 2026-11-19** (loaded machine, see X1.i; `scenarios=timing`, megakernel, binary BVH): sponza-white 960x540 -> 1080p, maxDepth 2: no ReSTIR 37.6 ms/frame (37.1-38.8; 26.6 fps), ReSTIR 43.4 ms (43.0-44.0; 23.1 fps). Split (no ReSTIR / ReSTIR): trace 33.0 / 37.6, pack 1.8 / 1.7, SVGF + composite 2.6 / 2.5, upscale 1.7 / 1.3, tonemap 0.2. The trace kernel is the whole gap to 30 fps. Quiet run + sponza-lamps still open Issue [#58](https://github.com/pmndrs/pathtracer/issues/58). | | P4.2d | ReSTIR candidates / spatial k / historyCap at equal chain cost after the denoiser (D32 sets 8 / 2 / 20 from the bias scans, not from an equal-time A/B) | โ€” | โฌœ | many-lights-256, lights-mix-lamps, sponza-lamps Issue [#58](https://github.com/pmndrs/pathtracer/issues/58). | diff --git a/bench/results/quiet-pass/20261202-win/REPORT.md b/bench/results/quiet-pass/20261202-win/REPORT.md index 56124488..4feac758 100644 --- a/bench/results/quiet-pass/20261202-win/REPORT.md +++ b/bench/results/quiet-pass/20261202-win/REPORT.md @@ -19,6 +19,7 @@ Script: `quiet-queue.sh` (session scratch). Commands are the QUIET-PASS "Windows | W14 / P4.5b (30 fps) | sponza-white 31.5 ms (31.7 fps) NEE, 36.7 ms (27.3 fps) ReSTIR; sponza-lamps 33.8 ms (29.6 fps) and 39.3 ms (25.5 fps). Trace is 84-87% of the frame, SVGF + upscale ~2.7 ms (thermal valid). | Only sponza-white without ReSTIR meets 30 fps. The trace kernel is the whole gap. | | W15 / X1.i (wide BVH) | Rays (thermal INVALID), cwbvh8 / quantized: primary 0.86-0.91, bounce 0.87-0.90, shadow any-hit 0.36-0.38, AO 0.28-0.29. bvh4 / quantized: 0.92-1.20 (about level with binary). Megakernel ms/spp vs binary: Cornell cwbvh8 0.77 / bvh4 0.92 (valid); Sponza cwbvh8 1.11 / bvh4 1.01 (INVALID). | cwbvh8 cannot be the D3D12 default (any-hit 2.6-3.5x slower, closest-hit 10-14% slower). Keep binary quantized on Windows; bvh4 is a wash. | | W13c (auto policy) | `pt-auto` is the fastest of ours on Cornell and Sponza. On Sponza it ties the plain wavefront (0.997-1.01). The megakernel is 1.44-1.54x slower on Cornell and 1.18x on Sponza. max_rel_pixel <= 3.1e-6 (thermal INVALID). | No per-device note needed. | +| W13a (competitors, run 2026-12-04, `bench/results/reports/p3-gate-3060`) | Median wall time to the final spp, 3 interleaved rounds. Cornell, 1024 spp: mutracer 13.8 s, pt-auto 32.9, tgpt-megakernel 34.3, tgpt-wavefront 42.1, pt-megakernel 48.7. sponza-white, 512 spp: pt-auto 82.2, pt-megakernel 94.6 (2 rounds only), mutracer 125.8, tgpt-wavefront 294, tgpt-megakernel 311. | These are wall times per spp, not time to equal quality: `baseline.ts --report p3-gate-3060` needs the Mac reference PFMs. On Sponza, pt-auto is the fastest per sample, 1.5x mutracer and 3.6x tgpt. On Cornell, mutracer is 2.4x faster than pt-auto per sample. | | P1.4c2a timing (bindless) | table / arrays: `fit` (6 buckets) 1.02 coherent, 1.05 divergent; `many` (20 groups vs arrays merged to 8) 0.63 / 0.76 (thermal valid). | A wash at a few buckets; the table wins when arrays would need merging. | The subagent's per-chunk tables follow. Its w10 section is the comment-nonce run only; the full W10 table is in TASKS W10.