From 1d46175f27fffcfcc16a60c7f1cfa7716eee3db3 Mon Sep 17 00:00:00 2001 From: chasse20 Date: Fri, 20 Nov 2026 01:17:28 -0500 Subject: [PATCH] Measure bounded traversal and localize deep pattern differences --- docs/parity-fixes.md | 28 ++++++++++++++++++++++++++++ docs/sbs-root-nodes.md | 8 ++++---- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/docs/parity-fixes.md b/docs/parity-fixes.md index cb7fac6d..425122fd 100644 --- a/docs/parity-fixes.md +++ b/docs/parity-fixes.md @@ -161,6 +161,34 @@ Four roots also have downstream stages. Replace the source patterns with the ori | mesh_2 | 8,984/10,496 | 0 / 1 / 0.25 / 1.52587891e-05 | | polygon_2 | 10,496/10,496 | 0 / 0 / 0 / 0 | +### Bounded traversal of deep patterns + +Four roots reached the traversal guard even at 4×4. An instrumented release cook raised the visit ceiling from 1,048,576 to 2,097,152 and the raster copy ceiling from 1,048,576 to 8,388,608 for this experiment. The 256,000,000-pixel-work guard remained active. Use defaults, F32, and seeds 106622, 106635, 106765 and 106778 in table order. Each process cooked one graph on one worker. Peak resident memory includes graph loading. The visit and stamp counts are for the most expensive pattern stage. Times are single observations. + +| Package | Whole pixels exact | Maximum F32 error | Visits / emitted stamps | Cook seconds | Peak MiB | First differing stage | +|---|---:|---:|---:|---:|---:|---| +| noise_directional_noise_3 | 13/16 | 2.50339508e-05 | 1,398,103 / 1,392,640 | 14.65 | 291.0 | Depth-ten pattern, 13/16 U16 pixels, one level | +| noise_directional_noise_3_v2 | 16/16 | 0 | 1,430,879 / 1,392,640 | 42.12 | 291.6 | All observed stages exact | +| noise_dirt_4 | 0/16 | 0.103746146 | 1,398,103 / 1,398,080 | 13.63 | 289.4 | Sharpen, after an exact 2×2 U16 source | +| noise_dirt_4_v2 | 0/16 | 1.63018703e-05 | 1,463,647 / 1,398,080 | 42.36 | 290.2 | Sharpen, after an exact 2×2 U8 source | + +Both dirt graphs already match all four source texels before sharpening. In the first graph a reference F32 edge is −.103746146 and the local edge is zero. The second has only small positive differences. In the first directional graph the two smaller patterns and their blend match exactly. Three values differ by one stored level in the deepest pattern, and those differences reach the final Levels node. + +For a traversal-only control, connect all four slots of each empty quadrant to the next quadrant, down to depth nine or ten. Use absolute 4×4 F32 output, zero roughness, unit global opacity, additive axis-aligned square leaves, gray level 2⁻²⁰, and seed 107011 + 17 × depth + 4. Use leaf size (1,1) for one cell or (2^depth,2^depth) for an image-wide square. The input consists entirely of these original parameters. + +| Depth and footprint | Visit ceiling | Exact pixels | Maximum error | Cook seconds | Peak MiB | +|---|---:|---:|---:|---:|---:| +| 9, cell | 1,048,576 | 16/16 | 0 | 0.94 | 190.6 | +| 9, wide | 1,048,576 | 16/16 | 0 | 0.95 | 190.4 | +| 10, cell | 1,048,576 | Execution budget | — | 2.55 | 239.3 | +| 10, cell | 2,097,152 | 16/16 | 0 | 3.98 | 225.2 | +| 10, wide | 1,048,576 | Execution budget | — | 2.48 | 224.8 | +| 10, wide | 2,097,152 | 16/16 | 0 | 3.80 | 225.4 | + +Depth ten produces 1,398,101 visits and 1,048,576 stamps. Raising only the visit ceiling renders both footprints. The cell case produces exactly one increment per pixel. In the wide case each pixel receives 409,600 to 802,816 increments. Both controls match every stored bit. At depth nine the wide case receives 102,400 to 200,704 increments. Dropping the last subdivision would therefore change the output. + +For a separate partition test, isolate the deepest pattern of each directional graph and the sole pattern of each dirt graph. At the first quadrant whose four outputs point to the same child, keep just one connected slot. Repeat with each of the four slots, retaining its original slot number. Render 4², 8², and 8×4 F32, using seeds 103307 + 13 × the zero-based inventory index + 0, 1 and 2 respectively. Use the first two distinct default/changed settings from the linked family measurements. All 48 partitioned renders complete with the standard guard. They match 160/1,120 pixels, with maximum F32 error .0000105798244. These are separate quadrant images. Full-root parity remains open for all four graphs. + ## 2026-11-19 root comparisons ### Texture sampling in pattern functions diff --git a/docs/sbs-root-nodes.md b/docs/sbs-root-nodes.md index 0c587ab7..e0b95ac3 100644 --- a/docs/sbs-root-nodes.md +++ b/docs/sbs-root-nodes.md @@ -326,8 +326,8 @@ Reading inherited variables directly reduced cook time on six Dirt 1 and BNW Spo | [noise_directional_noise_1_v2.sbs/directional_noise_1](../assets/sbs/noise_directional_noise_1_v2.sbs) | 0 | No | [In progress · 133,251/142,592 pixels in 18 comparable renders](parity-fixes.md#directional-noise-and-scratch-pattern-sources) | | [noise_directional_noise_2.sbs/directional_noise_2](../assets/sbs/noise_directional_noise_2.sbs) | 0 | Yes | [In progress · 103,497/107,776 pixels in 11 comparable renders](parity-fixes.md#directional-noise-and-scratch-pattern-sources) | | [noise_directional_noise_2_v2.sbs/directional_noise_2](../assets/sbs/noise_directional_noise_2_v2.sbs) | 0 | No | [In progress · 105,116/107,776 pixels in 11 comparable renders](parity-fixes.md#directional-noise-and-scratch-pattern-sources) | -| [noise_directional_noise_3.sbs/directional_noise_3](../assets/sbs/noise_directional_noise_3.sbs) | 0 | Yes | [In progress · all 19 whole cases hit the execution limit, isolated stages measured](parity-fixes.md#directional-noise-and-scratch-pattern-sources) | -| [noise_directional_noise_3_v2.sbs/directional_noise_3](../assets/sbs/noise_directional_noise_3_v2.sbs) | 0 | No | [In progress · all 19 whole cases hit the execution limit, isolated stages measured](parity-fixes.md#directional-noise-and-scratch-pattern-sources) | +| [noise_directional_noise_3.sbs/directional_noise_3](../assets/sbs/noise_directional_noise_3.sbs) | 0 | Yes | [In progress · all 19 whole cases hit the execution limit, isolated stages measured](parity-fixes.md#directional-noise-and-scratch-pattern-sources) · [4×4 bounded trial, 13/16 exact](parity-fixes.md#bounded-traversal-of-deep-patterns) | +| [noise_directional_noise_3_v2.sbs/directional_noise_3](../assets/sbs/noise_directional_noise_3_v2.sbs) | 0 | No | [In progress · all 19 whole cases hit the execution limit, isolated stages measured](parity-fixes.md#directional-noise-and-scratch-pattern-sources) · [4×4 bounded trial, 16/16 exact](parity-fixes.md#bounded-traversal-of-deep-patterns) | | [noise_directional_noise_4.sbs/directional_noise_4](../assets/sbs/noise_directional_noise_4.sbs) | 0 | Yes | [In progress · 134,015/144,640 pixels in 19 comparable renders](parity-fixes.md#directional-noise-and-scratch-pattern-sources) | | [noise_directional_noise_4_v2.sbs/directional_noise_4](../assets/sbs/noise_directional_noise_4_v2.sbs) | 0 | No | [In progress · 134,664/144,640 pixels in 19 comparable renders](parity-fixes.md#directional-noise-and-scratch-pattern-sources) | | [noise_directional_scratches.sbs/directional_scratches](../assets/sbs/noise_directional_scratches.sbs) | 0 | Yes | [In progress · 119,970/144,640 pixels in 19 comparable renders](parity-fixes.md#directional-noise-and-scratch-pattern-sources) | @@ -337,8 +337,8 @@ Reading inherited variables directly reduced cook time on six Dirt 1 and BNW Spo | [noise_dirt_2.sbs/dirt_2](../assets/sbs/noise_dirt_2.sbs) | 0 | Yes | [In progress · 11/19 whole outputs, 107,184/107,776 pixels](parity-fixes.md#dirt-noise-sources-and-downstream-stages) | | [noise_dirt_3.sbs/dirt_3](../assets/sbs/noise_dirt_3.sbs) | 0 | Yes | [In progress · 19/19 whole outputs, 135,236/142,592 pixels](parity-fixes.md#dirt-noise-sources-and-downstream-stages) | | [noise_dirt_3_v2.sbs/dirt_3](../assets/sbs/noise_dirt_3_v2.sbs) | 0 | No | [In progress · 17/19 whole outputs, 136,738/141,568 pixels](parity-fixes.md#dirt-noise-sources-and-downstream-stages) | -| [noise_dirt_4.sbs/dirt_4](../assets/sbs/noise_dirt_4.sbs) | 0 | Yes | [In progress · whole graph reaches its execution limit in all 19 cases, 2,112 hard-shape pixels per shape](parity-fixes.md#dirt-noise-sources-and-downstream-stages) | -| [noise_dirt_4_v2.sbs/dirt_4](../assets/sbs/noise_dirt_4_v2.sbs) | 0 | No | [In progress · whole graph reaches its execution limit in all 19 cases, 2,112 hard-shape pixels per shape](parity-fixes.md#dirt-noise-sources-and-downstream-stages) | +| [noise_dirt_4.sbs/dirt_4](../assets/sbs/noise_dirt_4.sbs) | 0 | Yes | [In progress · whole graph reaches its execution limit in all 19 cases, 2,112 hard-shape pixels per shape](parity-fixes.md#dirt-noise-sources-and-downstream-stages) · [4×4 bounded trial, 0/16 exact](parity-fixes.md#bounded-traversal-of-deep-patterns) | +| [noise_dirt_4_v2.sbs/dirt_4](../assets/sbs/noise_dirt_4_v2.sbs) | 0 | No | [In progress · whole graph reaches its execution limit in all 19 cases, 2,112 hard-shape pixels per shape](parity-fixes.md#dirt-noise-sources-and-downstream-stages) · [4×4 bounded trial, 0/16 exact](parity-fixes.md#bounded-traversal-of-deep-patterns) | | [noise_dirt_5.sbs/dirt_5](../assets/sbs/noise_dirt_5.sbs) | 0 | Yes | [In progress · 11/19 whole outputs, 107,751/107,776 pixels](parity-fixes.md#dirt-noise-sources-and-downstream-stages) | | [noise_dirt_5_v2.sbs/dirt_5](../assets/sbs/noise_dirt_5_v2.sbs) | 0 | No | [In progress · 11/19 whole outputs, 107,341/107,776 pixels](parity-fixes.md#dirt-noise-sources-and-downstream-stages) | | [noise_dirt_gradient.sbs/dirt_gradient](../assets/sbs/noise_dirt_gradient.sbs) | 0 | Yes | [In progress · 19/19 whole outputs, 141,554/142,592 pixels](parity-fixes.md#dirt-noise-sources-and-downstream-stages) |