From 836b7743bd97a26634bb573dee22947a7c0eb04d Mon Sep 17 00:00:00 2001 From: yujiaxu Date: Tue, 1 Dec 2026 00:45:10 +0800 Subject: [PATCH 1/2] A finding against the upscaler's history takes two and a half standard errors `reject` counts the mean distance of the samples around a traced pixel as a finding against the history from 2.5 of its own standard errors, in full from 5 (2 and 4 before). The lower pair was the highest at which what a moving object leaves behind was no worse; it was chosen on clips whose cameras hardly move. While the camera moves, and in the frames after it stops, the picture's 4 x 4 block means change 19 to 33 % less from frame to frame with the higher pair, for 3 to 12 % more of what a moving object leaves behind (measured on an Apple M4; the kernel's note has the figures). Co-Authored-By: Claude Fable 5.2 --- renderer/shaders/live.wgsl | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/renderer/shaders/live.wgsl b/renderer/shaders/live.wgsl index 2b9d1abf..8e603452 100644 --- a/renderer/shaders/live.wgsl +++ b/renderer/shaders/live.wgsl @@ -1522,8 +1522,8 @@ const UP_ONSET: f32 = 4.0; const UP_GONE: f32 = 0.05; // How many of its own standard errors the mean distance of the samples around a traced pixel stands from zero before // it counts as a finding against the history, and from where it counts in full (`reject`). -const UP_FINDING: f32 = 2.0; -const UP_CERTAIN: f32 = 4.0; +const UP_FINDING: f32 = 2.5; +const UP_CERTAIN: f32 = 5.0; const UP_STALE: f32 = 0.05; // History rejection at the render resolution (where UE's TSR judges its history too), in two passes. What a frame @@ -1823,14 +1823,25 @@ fn judge(@builtin(global_invocation_id) gid: vec3) { // bright sample or two among the nine passed for a change: the history was corrected by noise and dropped, anew every // frame where the light is sparse. The change of a picture's 4 x 4 block means from a frame to the next, luma of 255, // at 960 x 540 and half resolution on an M4, 2026-11-29, before / after / the scene's own (two offline renders a frame -// apart): a night street with a crowd, the camera drifting, 1.39 / 1.01 / 0.54; a hall of moving machines 1.20 / 0.85 -// / 0.52; a still room of lamps 0.043 / 0.033 / 0. With every sample four times over the rule before read 0.91 and -// 0.90 to 1.00: the excess was the samples' noise. The thresholds are the highest at which what a moving object leaves -// behind is no worse (bench-object-ghosting: of sixteen moments fifteen as before or better, one 1.5 % more). At 2.5 -// and 5 the three clips read 0.76, 0.72, 0.024 and that error 1 to 9 % more; at 3 and 6, 0.63, 0.67, 0.024 and 5 to -// 18 % more, a thrown lamp's trail 105 pixels for 59 a tenth of a second after it stops; at 1.5 and 3 the street -// reads 1.61. A change keeps its sign from frame to frame and noise does not: within one frame they are told no -// further apart. Over 7 x 7 samples: the same as over 5 x 5. The frame's time is as it was, clips alternated.) +// apart): a night street with a crowd, the camera drifting, 1.39 / 1.01 / 0.54; a hall of moving machines 1.20 / 0.85 / +// 0.52; a still room of lamps 0.043 / 0.033 / 0. With every sample four times over the rule before read 0.91 and 0.90 +// to 1.00: the excess was the samples' noise. The thresholds were first 2 and 4, the highest at which what a moving +// object leaves behind was no worse (bench-object-ghosting: of sixteen moments fifteen as before or better, one 1.5 % +// more). They are 2.5 and 5 since 2026-12-01, for what the picture does while the camera moves, which those clips, +// their cameras all but still, do not show. Two scenes recorded in lockstep at 60 frames a second (1280 x 720, half +// resolution, an M4) while the camera turns at 40 degrees a second, strafes, orbits and stops from 8 m/s; the same +// measure over the six frames after a move ends, at 2 and 4 / 2.5 and 5 / 3 and 6 / under MetalFX's upscaler given the +// same denoised frames. The street, nothing in it moving: after the turn 0.63 / 0.43 / 0.34 / 0.38, the strafe 0.92 / +// 0.63 / 0.51 / 0.48, the stop 1.00 / 0.67 / 0.49 / 0.44, and before any move 0.18 / 0.13 / 0.12 / 0.30. The hall, its +// machines moving throughout: 1.95 / 1.52 / 1.29 / 1.13, 2.78 / 2.25 / 1.94 / 1.88, 2.38 / 1.96 / 1.73 / 2.16, and 1.65 +// / 1.41 / 1.28 / 1.22. Against offline renders of nine moments of the hall's moves the picture's ΔE is within 0.05 of +// what it was (mid-turn 4.81 → 4.82, as the camera stops 5.65 → 5.67) and it has 1 to 5 % less of their detail +// (mid-turn 0.462 → 0.453). The three clips read 0.75, 0.72, 0.025. The price is what a moving object leaves behind: 3 +// to 12 % more over the sixteen moments (5.9 % in the mean), its trails as long to within five pixels but for a thrown +// lamp's as it stops (259 → 275). At 3 and 6 that is 6 to 22 % more (11.2 %), and the lamp's trail a tenth of a second +// after its stop 95 pixels for 64. At 1.5 and 3 the street reads 1.61. A change keeps its sign from frame to frame and +// noise does not: within one frame they are told no further apart. Over 7 x 7 samples: the same as over 5 x 5. The +// frame's time is as it was, clips alternated.) @compute @workgroup_size(8, 8, 1) fn reject(@builtin(global_invocation_id) gid: vec3) { let iw = i32(L.isz.x); From 3de24712d3246d156b30313116bcdd2b4ed38eb6 Mon Sep 17 00:00:00 2001 From: yujiaxu Date: Tue, 1 Dec 2026 00:56:21 +0800 Subject: [PATCH 2/2] Record the picture under a moving camera and what the thresholds cost The roadmap entry for the upscaler's thresholds at 2.5 and 5: what was measured while the camera moves (the camera-motion bench with the samples sixteen times over, two scenes recorded under three reconstruction methods, their frames against offline renders of the same instants), which of the upscaler's rules the flicker after a move comes from, and what the higher thresholds cost on moving objects and on a light that changes slowly. Measured on an Apple M4. Co-Authored-By: Claude Fable 5.2 --- docs/ROADMAP.md | 69 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 11c1f732..31fca0d7 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -2399,6 +2399,75 @@ the room read more). lights: the pass's picture 0.02 steps of 255 from the paths' own, at the view's size and at half of it, under both traversals). Not checked on Vulkan, nor in a browser. +**A finding against the upscaler's history takes two and a half standard errors; the picture while the camera moves +(2026-12-01).** The clips those thresholds were chosen on hardly move their cameras: one drifts half a metre a second +without turning, and the others stand. What the picture does under a player's camera was measured apart, on an M4 at +half resolution. + +Not the samples. `bench-ghosting --quick` (Bistro at night, mean ΔE of the whole picture against the converged frame +of each pose): settled 0.72, mid-turn 2.04, mid-strafe 2.45, a tenth of a second after the orbit's return 3.15, as the +camera stops from 8 m/s 2.54. With a camera hit's sampled lights sixteen times over (a switch in a clone, as above) +0.43, 1.64, 1.85, 2.21, 2.17; with every sampled signal sixteen times over 0.33, 1.49, 1.72, 1.85, 2.06. What a move +adds over the settled frame hardly changes (mid-turn 1.32 → 1.16, mid-strafe 1.73 → 1.39, the stop 1.83 → 1.73): in +motion the error is the reconstruction's. The same bench under MetalFX's upscaler given our denoised frames and under +MetalFX's denoiser, each against its own converged frame: settled 0.84 and 1.16, added by the turn 1.14 and 0.89, by +the strafe 1.48 and 1.13, by the stop 1.53 and 1.11. + +What is seen. Two scenes recorded frame by frame in lockstep at 60 frames a second (1280 × 720) while the camera plays +that bench's moves in the scene's own time (a turn at 40° a second, a strafe, an orbit, a stop from 8 m/s) and then a +path of the scene's: Bistro at night, nothing in it moving, and the hall of machines, its 551 parts moving throughout +(its moves start three metres into the room with a strafe of 1.5 m: the camera's first pose stands in a passage). The +measure of the entry above, the change of the picture's 4 × 4 block means from a frame to the next, over spans in +which the camera stands still, so that the scene's own change is the same under every method: built-in / MetalFX's +denoiser / MetalFX's upscaler. + +| | before any move | the six frames after the turn | after the strafe | after the stop | +|---|---|---|---|---| +| the street | 0.18 / 0.35 / 0.30 | 0.63 / 0.64 / 0.38 | 0.92 / 0.77 / 0.48 | 1.00 / 0.62 / 0.44 | +| the hall | 1.65 / 1.30 / 1.22 | 1.95 / 1.68 / 1.13 | 2.78 / 1.88 / 1.88 | 2.38 / 1.83 / 2.16 | + +Against offline renders of the same instants from the same cameras (the hall, 1024 samples), in that order: mean ΔE +with the camera still 3.92 / 3.79 / 4.01, mid-turn 4.81 / 4.71 / 4.88, mid-strafe 4.92 / 4.98 / 4.98, as the camera +stops 5.66 / 4.85 / 5.67 and a tenth of a second on 5.25 / 4.23 / 5.31; of their detail the picture has 0.59 / 0.67 / +0.60 still, 0.46 / 0.53 / 0.48 mid-turn, 0.30 / 0.35 / 0.34 as the camera stops. In the hall in motion the built-in +picture is as near the offline one as the others' but for a sudden stop, changes the most from frame to frame, and is +the softest. What a moving object leaves behind with the camera still (`bench-object-ghosting`, mean ΔE / trail in +pixels), in that order: a dragged device as it stops 1.79 / 29, 5.50 / 262, 1.52 / 27; a thrown lamp 6.91 / 259, 23.75 +/ 962, 6.52 / 286; a runner 0.46 / 30, 3.75 / 308, 0.57 / 27. MetalFX's upscaler does not pay for its steadiness +there; its denoiser leaves long trails (whether that is the denoiser's or an input it is not given was not looked +into). + +Which rule, one thing changed at a time (in a clone) and both scenes recorded again: a moving pixel's history of 16 +samples for 4 (`UP_MOVING`) changes the spans after a move by 1 to 7 % and takes detail (the hall mid-turn 0.462 → +0.441); 16 for 8 while the lighting changes (`UP_LIVE`), 0 to 2 %; no clamp of a moving pixel's history, 0 to 8 %. +`reject`'s thresholds at 3 and 6: the table's spans 35 to 51 % less on the street and 22 to 33 % in the hall, as +steady as MetalFX's upscaler. It is the rule the still clips found, with more to gain in motion. + +- `UP_FINDING` is 2.5 and `UP_CERTAIN` 5. The street before any move 0.18 → 0.13, after the turn 0.63 → 0.43, the + strafe 0.92 → 0.63, the stop 1.00 → 0.67; the hall 1.65 → 1.41, 1.95 → 1.52, 2.78 → 2.25, 2.38 → 1.96. Against the + offline renders of the hall's moves ΔE is within 0.05 at each of nine moments and the picture has 1 to 5 % less of + their detail. The three clips of the entry above read 1.04 → 0.75, 0.85 → 0.72, 0.033 → 0.025, their detail 0.497 → + 0.485, 0.681 → 0.677, 0.837 → 0.835. +- What it costs. A moving object leaves 3 to 12 % more behind over `bench-object-ghosting`'s sixteen moments (5.9 % in + the mean), its trails as long to within five pixels but for the thrown lamp's as it stops (259 → 275). A light that + changes slowly and everywhere is found later: a city through an afternoon in ten seconds reads ΔE 1.91 → 2.04 + against offline, and a garden in wind 0.79 → 0.80; the nine other clips with an offline picture are as before or + nearer (a house at golden hour 2.89 → 2.86, the hall 3.24 → 3.22). Whole pixels' change from a frame to the next + falls on the street 1.57 → 1.23, in the house 1.61 → 1.26, walking through a gallery 0.24 → 0.21, behind glass 0.20 + → 0.17, in the hall 1.63 → 1.49, in the still room of lamps 0.078 → 0.071, and by up to 3 % elsewhere; detail is 0 + to 0.012 less. Frame time from 0.8 % less to 0.4 % more over twelve clips. `bench-ghosting --quick --check` passes + (after the stop 1.34 → 1.40); `bench-temporal --shot edit`: the same frames to settle on every row. Unit suite 292, + render suite 273. +- At 3 and 6 a moving object leaves 6 to 22 % more (11.2 %) and the lamp's trail a tenth of a second after its stop is + 95 pixels for 64. + +Not done. MetalFX's upscaler is as steady as 3 and 6 make this one, without what they cost and with more of the +detail: the difference is in what the judging can tell apart, not in where its threshold stands. And at a cut into a +view whose lights have just dropped (the hall's loop starting again) every method's first frame is 3.5 to 3.7 times +too bright against offline and 2.6 to 2.7 times a tenth of a second on, a denoiser that reads the noisy signal itself +included: that is before reconstruction, and was not looked into. The recordings and their measures were made outside +the repository. Not checked on Vulkan, nor in a browser. + **The live passes from one place (2026-11-14, after it).** A buffer and a pass more (the locks' carry, above) took seven edits that had to agree: the declaration in live.wgsl, the bind group layout's entries, the pass list, the buffers' sizes and order, the bind group's entries, the dispatch grid (in two copies), and the merged layout's table.