mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-28 17:19:17 +01:00
Composite three active quadrant levels by physical tile batches
This commit is contained in:
1 parent
27d874f632
commit
44e9c4f3dd
6 files changed
+190
-26
No files matched your search
@@ -123,7 +123,7 @@ pub fn cook_with_base_level_inputs(context: &CookContext, base_level_only: &[boo
|
||||
let mut discard_allowance = MAX_VISITS;
|
||||
let grayscale = !context.b("color_mode");
|
||||
let mut seven_level_runs = (grayscale && opacity_depth == 7).then(SevenLevelRuns::default);
|
||||
let mut mixed_depth_runs = if grayscale && opacity_depth == 8 { MixedDepthRuns::new(context) } else { None };
|
||||
let mut mixed_depth_runs = if grayscale && matches!(opacity_depth, 8 | 9) { MixedDepthRuns::new(context, opacity_depth) } else { None };
|
||||
// A grayscale opacity expression can produce an infinity or NaN which participates in the blend.
|
||||
let opacity = context.value("opacity").and_then(Value::as_f32).unwrap_or(0.0);
|
||||
let nonfinite_gray_opacity = grayscale && !opacity.is_finite();
|
||||
|
||||
@@ -75,6 +75,57 @@ const FOUR_CHILDREN: &[(usize, usize)] = &[
|
||||
(16384, 16),
|
||||
];
|
||||
|
||||
// With four children and four grandchildren, the independent subtree boundaries
|
||||
// are 64 parents apart. Runs ending between them fill one or more physical batches.
|
||||
const FOUR_CHILDREN_AND_GRANDCHILDREN: &[(usize, usize)] = &[
|
||||
(64, 15),
|
||||
(192, 32),
|
||||
(1956, 16),
|
||||
(2048, 33),
|
||||
(3868, 6),
|
||||
(4096, 17),
|
||||
(4160, 9),
|
||||
(4288, 38),
|
||||
(6052, 10),
|
||||
(6144, 28),
|
||||
(7964, 2),
|
||||
(8192, 19),
|
||||
(8256, 12),
|
||||
(8384, 29),
|
||||
(10148, 13),
|
||||
(10240, 31),
|
||||
(12060, 4),
|
||||
(12288, 25),
|
||||
(12352, 23),
|
||||
(12416, 30),
|
||||
(12480, 43),
|
||||
(12684, 24),
|
||||
(12800, 39),
|
||||
(13060, 1),
|
||||
(13312, 8),
|
||||
(13376, 20),
|
||||
(13440, 34),
|
||||
(13504, 45),
|
||||
(13732, 21),
|
||||
(13824, 42),
|
||||
(14084, 3),
|
||||
(14336, 11),
|
||||
(14400, 26),
|
||||
(14464, 35),
|
||||
(14528, 40),
|
||||
(14756, 27),
|
||||
(14848, 41),
|
||||
(15108, 5),
|
||||
(15360, 14),
|
||||
(15620, 7),
|
||||
(15680, 36),
|
||||
(15712, 18),
|
||||
(15808, 44),
|
||||
(15872, 37),
|
||||
(16132, 0),
|
||||
(16384, 22),
|
||||
];
|
||||
|
||||
#[derive(Default)]
|
||||
pub(super) struct MixedDepthRuns {
|
||||
layout: &'static [(usize, usize)],
|
||||
@@ -82,22 +133,24 @@ pub(super) struct MixedDepthRuns {
|
||||
next_boundary: usize,
|
||||
parents: usize,
|
||||
children_per_parent: usize,
|
||||
draws_per_parent: usize,
|
||||
deepest: u32,
|
||||
draws: usize,
|
||||
shape: Option<i32>,
|
||||
copies: Option<TileCopies>,
|
||||
}
|
||||
|
||||
impl MixedDepthRuns {
|
||||
pub(super) fn new(context: &CookContext) -> Option<Self> {
|
||||
pub(super) fn new(context: &CookContext, deepest: u32) -> Option<Self> {
|
||||
if context.b("cull_outside") {
|
||||
return None;
|
||||
}
|
||||
let copies = match context.tiling_axes() {
|
||||
[false, false] => None,
|
||||
[true, true] => Some(TileCopies::new(context)?),
|
||||
axes if axes == [true; 2] || deepest == 9 => Some(TileCopies::new(context, deepest)?),
|
||||
_ => return None,
|
||||
};
|
||||
Some(Self { copies, ..Self::default() })
|
||||
Some(Self { copies, deepest, ..Self::default() })
|
||||
}
|
||||
|
||||
pub(super) fn visit(&mut self, node: &PatternNode, depth: u32, retained: usize) -> bool {
|
||||
@@ -107,15 +160,17 @@ impl MixedDepthRuns {
|
||||
if depth != 7 {
|
||||
return match depth {
|
||||
0..=6 => node.children.iter().flatten().count() == 4,
|
||||
8 => node.children.iter().all(Option::is_none),
|
||||
8 if self.deepest == 9 => node.children.iter().all(Option::is_some),
|
||||
depth if depth == self.deepest => node.children.iter().all(Option::is_none),
|
||||
_ => false,
|
||||
};
|
||||
}
|
||||
let children = node.children.iter().flatten().count();
|
||||
if self.layout.is_empty() {
|
||||
self.layout = match children {
|
||||
2 => TWO_CHILDREN,
|
||||
4 => FOUR_CHILDREN,
|
||||
(self.layout, self.draws_per_parent) = match (self.deepest, children) {
|
||||
(8, 2) => (TWO_CHILDREN, 3),
|
||||
(8, 4) => (FOUR_CHILDREN, 5),
|
||||
(9, 4) => (FOUR_CHILDREN_AND_GRANDCHILDREN, 21),
|
||||
_ => return false,
|
||||
};
|
||||
self.children_per_parent = children;
|
||||
@@ -136,7 +191,7 @@ impl MixedDepthRuns {
|
||||
pub(super) fn draw(&mut self, stamp: &PatternStamp, opacities: &[f32], retained: bool) -> bool {
|
||||
let Some(weight) = opacities.get(stamp.depth as usize) else { return false };
|
||||
// Turning off unrelated draws changes the order even where those draws never overlap the readout.
|
||||
if !(7..=8).contains(&stamp.depth)
|
||||
if !(7..=self.deepest).contains(&stamp.depth)
|
||||
|| stamp.blend != 0
|
||||
|| !(2..=16).contains(&stamp.pattern)
|
||||
|| *self.shape.get_or_insert(stamp.pattern) != stamp.pattern
|
||||
@@ -146,11 +201,11 @@ impl MixedDepthRuns {
|
||||
return false;
|
||||
}
|
||||
self.draws += 1;
|
||||
self.copies.as_mut().is_none_or(|copies| copies.record(stamp, retained, self.draws, 1 + self.children_per_parent).is_some())
|
||||
self.copies.as_mut().is_none_or(|copies| copies.record(stamp, retained, self.draws, self.draws_per_parent).is_some())
|
||||
}
|
||||
|
||||
pub(super) fn finish(mut self, stamps: &[PatternStamp]) -> Option<Vec<DrawRun<'_>>> {
|
||||
if self.parents != 16384 || self.draws != self.parents * (1 + self.children_per_parent) || self.starts.len() != self.layout.len() {
|
||||
if self.parents != 16384 || self.draws != self.parents * self.draws_per_parent || self.starts.len() != self.layout.len() {
|
||||
return None;
|
||||
}
|
||||
self.starts.push(DrawPosition { stamp: stamps.len(), copy: 0 });
|
||||
@@ -158,7 +213,7 @@ impl MixedDepthRuns {
|
||||
if self.children_per_parent == 2 {
|
||||
return copies.two_child_runs(stamps);
|
||||
}
|
||||
self.starts = copies.boundaries(self.layout)?;
|
||||
self.starts = copies.boundaries(self.layout, self.draws_per_parent)?;
|
||||
}
|
||||
let mut groups = vec![DrawRun::whole(&[]); self.layout.len()];
|
||||
for ((_, rank), bounds) in self.layout.iter().zip(self.starts.windows(2)) {
|
||||
|
||||
@@ -625,6 +625,47 @@ fn depth_eight_parent_order_counts_children_that_cross_the_tile_edge() {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn three_active_quadrant_levels_split_on_physical_tile_copies() {
|
||||
let tiny = f32::EPSILON * 0.25;
|
||||
for (tiling, negative, positive, leaf_frame, first, second) in [
|
||||
(0, 12, 0, [0.0, 0.5], 64..128, 512..1024),
|
||||
(0, 9, 11, [-0.5 / 512.0, 0.5], 796..932, 0..0),
|
||||
(1, 9, 11, [-0.5 / 512.0, 0.5], 784..919, 0..0),
|
||||
(2, 9, 11, [0.5, -0.5 / 512.0], 784..922, 0..0),
|
||||
] {
|
||||
let (mut graph, groups) = seven_level_tree();
|
||||
let middle = graph.add(PatternNodeKind::Quadrant).unwrap();
|
||||
let leaf = graph.add(PatternNodeKind::Quadrant).unwrap();
|
||||
graph.nodes[(middle - 1) as usize].parameters = additive_square(0.25, [0.0; 2], [0.0, 0.5]);
|
||||
graph.nodes[(leaf - 1) as usize].parameters = additive_square(0.25, [0.0; 2], leaf_frame);
|
||||
graph.nodes[(middle - 1) as usize].children.fill(Some(leaf));
|
||||
for (group, QuadrantProbeGroup { last_three: [_, _, parent], offset }) in groups.into_iter().enumerate() {
|
||||
let (gain, frame) = if group == negative {
|
||||
(-1.0, [0.0; 2])
|
||||
} else if group == positive {
|
||||
(tiny, [0.0; 2])
|
||||
} else {
|
||||
(0.25, [0.5, 0.0])
|
||||
};
|
||||
graph.nodes[parent].parameters = additive_square(gain, offset, frame);
|
||||
graph.nodes[parent].children.fill(Some(middle));
|
||||
}
|
||||
let variables = BTreeMap::from([("$tiling".into(), Value::Int(tiling))]);
|
||||
let image = cook_in_regions(graph, &variables, 188119, [128; 2], [[0.0, 1.0, 0.0, 1.0]; 2], 1.0).unwrap().remove(0);
|
||||
for y in 0..32 {
|
||||
for x in 0..32 {
|
||||
let mut parent = 0;
|
||||
for bit in 0..5 {
|
||||
parent |= (((x >> bit) & 1) | (((y >> bit) & 1) << 1)) << (2 * bit);
|
||||
}
|
||||
let expected = if first.contains(&parent) || second.contains(&parent) { tiny } else { 0.0 };
|
||||
assert_eq!(image.get_gray(x, y, false), expected, "tiling {tiling}, groups {negative} and {positive}, parent {parent}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn wrapped_copies_of_one_stamp_can_draw_on_opposite_sides_of_another_stamp() {
|
||||
fn square(gain: f32, center: [f32; 2], size: f32) -> BTreeMap<String, Value> {
|
||||
|
||||
@@ -9,29 +9,40 @@ use std::ops::Range;
|
||||
mod two_children;
|
||||
|
||||
const UNIT_WINDOW: [f32; 4] = [0.0, 1.0, 0.0, 1.0];
|
||||
const PARENTS_PER_SUBTREE: usize = 256;
|
||||
const DEPTH_THREE_PARENTS: usize = 256;
|
||||
const DEPTH_FOUR_PARENTS: usize = 64;
|
||||
// Paired interior squares change order when the preceding draws fill 5,460 tile copies.
|
||||
const COPIES_PER_BATCH: u32 = 5460;
|
||||
|
||||
pub(super) struct TileCopies {
|
||||
window: Region,
|
||||
axes: [bool; 2],
|
||||
parents_per_subtree: usize,
|
||||
total: u32,
|
||||
subtree_ends: Vec<u32>,
|
||||
retained: Vec<Range<u32>>,
|
||||
}
|
||||
|
||||
impl TileCopies {
|
||||
pub(super) fn new(context: &CookContext) -> Option<Self> {
|
||||
pub(super) fn new(context: &CookContext, deepest: u32) -> Option<Self> {
|
||||
if context.v4("render_region") != UNIT_WINDOW || context.v4("tiling_region") != UNIT_WINDOW {
|
||||
return None;
|
||||
}
|
||||
Some(Self { window: Region::new(UNIT_WINDOW).ok()?, total: 0, subtree_ends: Vec::new(), retained: Vec::new() })
|
||||
let parents_per_subtree = if deepest == 9 { DEPTH_FOUR_PARENTS } else { DEPTH_THREE_PARENTS };
|
||||
Some(Self {
|
||||
window: Region::new(UNIT_WINDOW).ok()?,
|
||||
axes: context.tiling_axes(),
|
||||
parents_per_subtree,
|
||||
total: 0,
|
||||
subtree_ends: Vec::new(),
|
||||
retained: Vec::new(),
|
||||
})
|
||||
}
|
||||
|
||||
pub(super) fn record(&mut self, stamp: &PatternStamp, retained: bool, draws: usize, draws_per_parent: usize) -> Option<()> {
|
||||
let footprint = Footprint::new(stamp).ok()?;
|
||||
let center = self.window.copy_origin(stamp.center, [true; 2]);
|
||||
let [x, y] = self.window.repeats(&self.window, center, footprint.radius, [true; 2]).ok()?;
|
||||
let center = self.window.copy_origin(stamp.center, self.axes);
|
||||
let [x, y] = self.window.repeats(&self.window, center, footprint.radius, self.axes).ok()?;
|
||||
if !(1..=2).contains(&x.count) || !(1..=2).contains(&y.count) {
|
||||
return None;
|
||||
}
|
||||
@@ -40,7 +51,15 @@ impl TileCopies {
|
||||
self.retained.push(self.total..end);
|
||||
}
|
||||
self.total = end;
|
||||
if draws.is_multiple_of(draws_per_parent * PARENTS_PER_SUBTREE) {
|
||||
if draws.is_multiple_of(draws_per_parent * self.parents_per_subtree) {
|
||||
// A depth-three subtree that fills a batch can reschedule unrelated
|
||||
// stamps in a nine-level tree, even if its copies miss the output pixels.
|
||||
if self.parents_per_subtree == DEPTH_FOUR_PARENTS && draws.is_multiple_of(draws_per_parent * DEPTH_THREE_PARENTS) {
|
||||
let group_start = self.subtree_ends.iter().rev().nth(3).copied().unwrap_or(0);
|
||||
if end - group_start >= COPIES_PER_BATCH {
|
||||
return None;
|
||||
}
|
||||
}
|
||||
self.subtree_ends.push(end);
|
||||
}
|
||||
Some(())
|
||||
@@ -58,14 +77,14 @@ impl TileCopies {
|
||||
ranges.into_iter().map(|r| DrawRun::between(stamps, self.draw_position(r.start), self.draw_position(r.end))).collect()
|
||||
}
|
||||
|
||||
pub(super) fn boundaries(&self, layout: &[(usize, usize)]) -> Option<Vec<DrawPosition>> {
|
||||
pub(super) fn boundaries(&self, layout: &[(usize, usize)], draws_per_parent: usize) -> Option<Vec<DrawPosition>> {
|
||||
let mut cuts = vec![None; layout.len() + 1];
|
||||
let mut order = vec![0; layout.len()];
|
||||
cuts[0] = Some(0_u32);
|
||||
for (run, &(parents, rank)) in layout.iter().enumerate() {
|
||||
*order.get_mut(rank)? = run;
|
||||
if parents % PARENTS_PER_SUBTREE == 0 {
|
||||
cuts[run + 1] = self.subtree_ends.get(parents / PARENTS_PER_SUBTREE - 1).copied();
|
||||
if parents % self.parents_per_subtree == 0 {
|
||||
cuts[run + 1] = self.subtree_ends.get(parents / self.parents_per_subtree - 1).copied();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,10 +94,15 @@ impl TileCopies {
|
||||
let end = match cuts[run + 1] {
|
||||
Some(end) => end,
|
||||
None => {
|
||||
let end = start.checked_add(COPIES_PER_BATCH - drawn % COPIES_PER_BATCH)?;
|
||||
// Crossing the measured subtree interval can change the order of the later runs.
|
||||
let (parents, _) = layout[run];
|
||||
if self.subtree_ends.partition_point(|boundary| *boundary <= end) != parents / PARENTS_PER_SUBTREE {
|
||||
let first = run.checked_sub(1).map_or(0, |previous| layout[previous].0);
|
||||
// Consecutive batches can form one run. The first can already
|
||||
// contain copies from the previous run.
|
||||
let length = u32::try_from((parents - first) * draws_per_parent).ok()?;
|
||||
let capacity = length.div_ceil(COPIES_PER_BATCH).checked_mul(COPIES_PER_BATCH)?;
|
||||
let end = start.checked_add(capacity - drawn % COPIES_PER_BATCH)?;
|
||||
// Crossing the measured subtree interval can change the order of the later runs.
|
||||
if self.subtree_ends.partition_point(|boundary| *boundary <= end) != parents / self.parents_per_subtree {
|
||||
return None;
|
||||
}
|
||||
cuts[run + 1] = Some(end);
|
||||
|
||||
@@ -83,6 +83,50 @@ Route each of the two active pattern sources, the blend and the final levels nod
|
||||
|
||||
The maximum U16 error is one code wherever a stage differs. At 64² and seed 42 the destination reads 34557 in MaterialCraft and 34556 in the reference at (32,6). The blend retains those codes. Levels returns .6257977485656738 and .6257197260856628. At 32 × 64 and seed 42 the destination matches throughout, while the source reads 4186 and 4187 at (31,21). Each active pattern source therefore accounts for a discrepancy at a different setting. The whole root remains in progress.
|
||||
|
||||
### Three active quadrant levels in Dirt 5 and Dirt Gradient
|
||||
|
||||
Dirt 5 and Dirt Gradient draw a parent at depth 7, its four children and their sixteen children. In a complete tree this gives 344,064 draws before tiling. Changing the addition order changes some F32 pixels even when all three levels draw the same shape. The clean-room renderer now counts physical tile copies when splitting these runs. The order was measured with original square graphs and checked on the two root generators.
|
||||
|
||||
Start with a unit render and tiling region, roughness 1, a white background and a full four-child tree. Leave depths 0–6 empty. At depth 7 draw two squares at the same center with weights −1 and 2⁻²⁵. The two possible F32 results distinguish the draw order. Keep the deeper levels active and move their .25-weight squares away from the readout. Use a square width of .875 in both axes. On one reference processor, pair the 64 depth-three subtrees in 63 rounds so that each pair meets once. Reading the 256 corresponding parent centers in Morton order gives 516,096/516,096 matching comparisons. Shift the compared centers within the subtrees and test both polarities. All 818,406 eligible overlap reads across 684 frames agree with the reconstructed order. Split the 256 parent positions at 0, 4, 28, 64, 96, 128, 140, 164, 192 and 256, then bisect each interval. Comparing the midpoints of the 153 interval pairs in every subtree and both polarities gives another 19,584/19,584 exact reads. All three maxima are zero. These observations place the parents in 46 contiguous runs.
|
||||
|
||||
To reproduce the tile-edge regression, divide the tree into 16 depth-two subtrees, subtract each subtree origin from its depth-seven branch offset and use 128² F32 at seed 188119. Set the frames of groups 9 and 11 to zero and their weights to −1 and 2⁻²⁵ respectively. Offset all other parent frames by (.5, 0) with weight .25. Offset the children by (0, .5) and the grandchildren by (−.5/512, .5). Read the top-left 32² pixels in Morton order. The tiny positive result occurs at parent indices [796, 932) with tiling off and [784, 919) with horizontal tiling. With vertical tiling and grandchild offset (.5, −.5/512), it occurs at [784, 922). All other readout pixels are zero. Moving a grandchild over a seam changes the order of the overlapping interior parents.
|
||||
|
||||
For wider coverage, use shape selectors 2, 3, 4 and 6 with tiling off, horizontal, vertical and both. Keep child and grandchild base frame offsets at (0, .5). Apply the following eight changes, with seed 188119 + 37j for zero-based row j. The deltas are in unit coordinates.
|
||||
|
||||
| Negative, positive group | Size | Width | Child frame delta | Grandchild frame delta |
|
||||
|---|---|---:|---|---|
|
||||
| 12, 0 | 128² | .875 | 0 | 0 |
|
||||
| 0, 14 | 128² | .875 | 0 | (−.5/512, 0) |
|
||||
| 4, 13 | 128 × 64 | .875 | (.5/256, 0) | 0 |
|
||||
| 10, 3 | 64 × 128 | .875 | 0 | (0, −.5/512) |
|
||||
| 9, 15 | 256 × 128 | .75 | 0 | (−.5/512, 0) |
|
||||
| 5, 11 | 128 × 256 | .9375 | 0 | (−.5/512, 0) |
|
||||
| 12, 0 | 128² | .875 | 0 | (−.5/512, 0) |
|
||||
| 12, 0 | 128² | .875 | 0 | (0, −.5/512) |
|
||||
|
||||
The 128 full F32 frames matched 2,359,296/2,359,296 pixels. In the square graph repeat all four tiling modes with group pairs (9,11), (7,9), (5,11) and (5,7), moving the grandchild just over each seam in turn as in the regression. These 32 frames matched 524,288/524,288. Save and reopen rows 0, 3 and 6 for horizontal squares, both-axis shape 3 and untiled shape 6. Repeat with square edge settings 0, 3 and 6 under vertical tiling, visiting X then Y for each pair in the given order. Both applications preserved their originals and agreed on all 172,032/172,032 pixels across these 12 reopens. All maxima are zero.
|
||||
|
||||
Test the copy threshold independently with square size .875, horizontal tiling and 128² F32. Leave the parent pairs overlapped. Each depth-three subtree has 5,376 draws. Move 0, 40, 80 or 83 grandchild squares to cross the left edge, dividing the extra copies equally among the four depth-four children and assigning remainders to the first children in Morton order. Use pairing rounds 0, 5, 17, 28, 41 and 62 in both polarities. All 48 frames match, 786,432/786,432 pixels with maximum zero. At 84 extra copies, a subtree fills a batch of 5,460 and the reference order can change. The three-level tiled implementation uses the measured order below that threshold when its splits remain in the measured subtree intervals.
|
||||
|
||||
For the real generators, route the pattern node directly to the output. Request F32 at 256² seed 0, 128 × 64 seed 142327 and 256 × 128 seed 142453. Add 32², 32 × 64, 64 × 128, 128 × 64, 128² and 256 × 128 with seed 186377 + i + 71j, where i is the inventory index and j starts at zero. Dirt 5 matched all 175,104 pixels with tiling off and all 175,104 with both axes enabled. Dirt Gradient also matched 175,104/175,104 untiled, all maxima zero. With its original horizontal tiling it matched 60,028/175,104, maximum 1.19209290e−7. With both axes enabled it matched 42,464/175,104, maximum 1.34110451e−7.
|
||||
|
||||
For each whole root, repeat the earlier 67 settings. Add 16 × 32, 128 × 64, 128² and 256 × 128 with seed 185771 + 43i + 73j. Then add 32 × 16, 64 × 128, 128 × 64, 128² and 256 × 128 at seeds 188101 + i, 142452, 142454, 188441 + i and 188711 + i respectively. In each series use U16 and F32 at the first and last sizes, and all four formats for the middle sizes, in U8, U16, F16, F32 order. These roots expose no input pins or adjustable parameters. Reopen the earlier 12 saved settings and every third setting of each new series, starting at the first. The reopened row compares the applications. [Earlier root settings and reopens](#single-processor-comparisons-for-clouds-2-and-five-dirt-fields)
|
||||
|
||||
| Root | Reference processors | Settings | U8 exact / total · max | U16 exact / total · max | F16 exact / total · max | F32 exact / total · max |
|
||||
|---|---|---:|---:|---:|---:|---:|
|
||||
| Dirt 5 | 1 | 95 | 567,552/567,552 · 0 | 779,008/779,008 · 0 | 567,552/567,552 · 0 | 748,544/748,544 · 0 |
|
||||
| Dirt 5 | 8 | 95 | 567,548/567,552 · 1 | 778,585/779,008 · 4 | 567,396/567,552 · 0.000244140625 | 748,143/748,544 · 5.10364771e-05 |
|
||||
| Dirt 5 | 1, reopened | 22 | 28,672/28,672 · 0 | 70,656/70,656 · 0 | 16,384/16,384 · 0 | 238,848/238,848 · 0 |
|
||||
| Dirt Gradient | 1 | 95 | 567,552/567,552 · 0 | 778,701/779,008 · 2 | 567,524/567,552 · 0.00048828125 | 748,233/748,544 · 1.93715096e-05 |
|
||||
| Dirt Gradient | 8 | 95 | 567,552/567,552 · 0 | 778,737/779,008 · 2 | 567,533/567,552 · 0.000244140625 | 748,268/748,544 · 2.03251839e-05 |
|
||||
| Dirt Gradient | 1, reopened | 22 | 28,672/28,672 · 0 | 70,633/70,656 · 1 | 16,383/16,384 · 6.10351562e-05 | 238,767/238,848 · 1.93715096e-05 |
|
||||
|
||||
Both applications reproduced their own whole-root originals on all 354,560/354,560 reopened pixels per root. Across the 95 whole-root settings, Dirt 5 matched 2,662,656/2,662,656 on one processor and 2,661,672/2,662,656 on eight. Dirt Gradient matched 2,662,010/2,662,656 on one and 2,662,090/2,662,656 on eight. Both roots remain in progress.
|
||||
|
||||
Repeat 256 × 128 F32 at seed 142453, 128² U16 and F16 at seed 185917 + 43i, and 256 × 128 F32 at seed 185990 + 43i. Interleave three reads at each original seed with two reads at seed +3 and +5. All four repeated Dirt 5 settings were exact between single-processor reference reads. With eight processors, two reference reads of the first F32 setting agreed on 32,759/32,768 pixels, maximum 5.08725643e−5. For Dirt Gradient even two single-processor reference reads of the 128² F16 setting differed on 2/16,384 pixels, maximum .000244140625.
|
||||
|
||||
The new square regression failed on the preceding implementation. After the fix, 432 release tests passed in the node and evaluation crates. Formatting, workspace Clippy for all targets, layer checks and the WebAssembly check passed. Seventy existing Clouds 2, Dirt 1 and Dirt 6 settings retained 1,711,872/1,711,872 exact pixels.
|
||||
|
||||
## 2026-11-21 root comparisons
|
||||
|
||||
### Connected quadrant depth and amplified spot patterns
|
||||
|
||||
@@ -253,9 +253,9 @@ Creased matches 10,947,840/10,947,840 pixels across 100 distinct settings throug
|
||||
| [directionnal_noise.sbs/directionnal_noise](../assets/sbs/directionnal_noise.sbs) | 0 | Yes | [Parity · 136 settings, 40,572,160/40,572,160 pixels](parity-fixes.md#interpolated-coordinates-on-clipped-squares-and-quarter-turns) · [Earlier measurements](parity-fixes.md#draw-order-at-six-quadrant-subdivisions) |
|
||||
| [dirt_1.sbs/dirt_1](../assets/sbs/dirt_1.sbs) | 0 | Yes | [In progress · 2,579,712/2,579,712 pixels across 80 single-processor settings, 2,579,658/2,579,712 on eight](parity-fixes.md#wrapped-draw-order-for-four-children-below-depth-seven) · [Earlier measurements](parity-fixes.md#wave-frequency-and-phase-in-directional-noise) · [Overlapping disc additions](parity-fixes.md#overlapping-disc-additions-in-dirt-1) · [Six reference repeats](parity-fixes.md#repeated-dirt-pattern-stages) · [2,316,507/2,316,544 pixels across 68 single-processor settings](parity-fixes.md#single-processor-comparisons-for-clouds-2-and-five-dirt-fields) · [untiled generator measurements and four-format reopens](parity-fixes.md#untiled-draw-order-for-two-and-four-children-below-depth-seven) · [partial copies and whole-root recheck](parity-fixes.md#individual-tile-copies-across-a-pattern-draw-boundary) |
|
||||
| [dirt_3.sbs/dirt_3](../assets/sbs/dirt_3.sbs) | 0 | Yes | [In progress · 68 single-processor settings exact, 2,316,526/2,316,544 pixels on eight processors](parity-fixes.md#three-terminal-children-in-seven-level-quadrant-trees) · [Earlier distinct settings](parity-fixes.md#original-and-reopened-dirt-moisture-and-cellular-noise-fields) · [Earlier measurements](parity-fixes.md#wave-frequency-and-phase-in-directional-noise) · [Earlier isolation](parity-fixes.md#bounds-and-pixel-coordinates-of-rotated-pattern-stamps) · [Six reference repeats](parity-fixes.md#repeated-dirt-pattern-stages) · [2,316,511/2,316,544 pixels across 68 single-processor settings](parity-fixes.md#single-processor-comparisons-for-clouds-2-and-five-dirt-fields) |
|
||||
| [dirt_5.sbs/dirt_5](../assets/sbs/dirt_5.sbs) | 0 | Yes | [In progress · 2,005,576/2,006,016 pixels across 40 new renders](parity-fixes.md#wave-frequency-and-phase-in-directional-noise) · [Earlier measurements](parity-fixes.md#stored-opacity-across-pattern-depths) · [Six reference repeats](parity-fixes.md#repeated-dirt-pattern-stages) · [2,299,232/2,300,160 pixels across 67 single-processor settings](parity-fixes.md#single-processor-comparisons-for-clouds-2-and-five-dirt-fields) |
|
||||
| [dirt_5.sbs/dirt_5](../assets/sbs/dirt_5.sbs) | 0 | Yes | [In progress · 2,662,656/2,662,656 pixels on one processor, 2,661,672/2,662,656 on eight across 95 settings](parity-fixes.md#three-active-quadrant-levels-in-dirt-5-and-dirt-gradient) · [2,005,576/2,006,016 pixels across 40 new renders](parity-fixes.md#wave-frequency-and-phase-in-directional-noise) · [Earlier measurements](parity-fixes.md#stored-opacity-across-pattern-depths) · [Six reference repeats](parity-fixes.md#repeated-dirt-pattern-stages) · [2,299,232/2,300,160 pixels across 67 single-processor settings](parity-fixes.md#single-processor-comparisons-for-clouds-2-and-five-dirt-fields) |
|
||||
| [dirt_6.sbs/dirt_6](../assets/sbs/dirt_6.sbs) | 0 | Yes | [In progress · 2,593,024/2,593,024 pixels across 84 single-processor settings, 2,591,547/2,593,024 on eight](parity-fixes.md#individual-tile-copies-across-a-pattern-draw-boundary) · [Previous four-child generator results](parity-fixes.md#wrapped-draw-order-for-four-children-below-depth-seven) · [Earlier measurements](parity-fixes.md#original-and-reopened-dirt-moisture-and-cellular-noise-fields) · [Earlier measurements](parity-fixes.md#wave-frequency-and-phase-in-directional-noise) · [Earlier isolation](parity-fixes.md#drawing-axis-aligned-stamps-smaller-than-one-pixel) · [Six reference repeats](parity-fixes.md#repeated-dirt-pattern-stages) · [2,298,882/2,300,160 pixels across 67 single-processor settings](parity-fixes.md#single-processor-comparisons-for-clouds-2-and-five-dirt-fields) · [untiled generator measurements and four-format reopens](parity-fixes.md#untiled-draw-order-for-two-and-four-children-below-depth-seven) |
|
||||
| [dirt_gradient.sbs/dirt_gradient](../assets/sbs/dirt_gradient.sbs) | 0 | Yes | [In progress · 2,005,640/2,006,016 pixels across 40 new renders](parity-fixes.md#wave-frequency-and-phase-in-directional-noise) · [Earlier measurements](parity-fixes.md#draw-order-at-six-quadrant-subdivisions) · [Six reference repeats](parity-fixes.md#repeated-dirt-pattern-stages) · [2,299,615/2,300,160 pixels across 67 single-processor settings](parity-fixes.md#single-processor-comparisons-for-clouds-2-and-five-dirt-fields) |
|
||||
| [dirt_gradient.sbs/dirt_gradient](../assets/sbs/dirt_gradient.sbs) | 0 | Yes | [In progress · 2,662,010/2,662,656 pixels on one processor, 2,662,090/2,662,656 on eight across 95 settings](parity-fixes.md#three-active-quadrant-levels-in-dirt-5-and-dirt-gradient) · [2,005,640/2,006,016 pixels across 40 new renders](parity-fixes.md#wave-frequency-and-phase-in-directional-noise) · [Earlier measurements](parity-fixes.md#draw-order-at-six-quadrant-subdivisions) · [Six reference repeats](parity-fixes.md#repeated-dirt-pattern-stages) · [2,299,615/2,300,160 pixels across 67 single-processor settings](parity-fixes.md#single-processor-comparisons-for-clouds-2-and-five-dirt-fields) |
|
||||
| [exposure.sbs/exposure](../assets/sbs/exposure.sbs) | 1 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) |
|
||||
| [extend_shape.sbs/extend_shape_color](../assets/sbs/extend_shape.sbs) | 1 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) |
|
||||
| [extend_shape.sbs/extend_shape_grayscale](../assets/sbs/extend_shape.sbs) | 1 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) |
|
||||
|
||||
Reference in new issue
Block a user