Files
lightcraft/docs
Jeremy HookeandClaude Opus 5.5 fe6e064975 LR-EDIT-EFFECTS-GRAIN: crystal grain keeps slider drags in budget on slower machines
Measured on a Ryzen 5 7545U with a Radeon 740M (RADV), where grain cost what
the M2 Max hid:

- The tables stay on the GPU between renders (Gpu::grain_tables) and are
  copied into the finish kernel's aux buffer on the device, instead of being
  appended to aux and uploaded (12 MB) on every render. Amount drag, 2.5 MP
  preview: 16.9 -> 11-15 ms a frame (no grain: 8 ms).
- A draft render (a drag) doesn't wait for a tile it hasn't got: the last tile
  of the seed stands in while the new one is drawn in the background, on a
  pool of half the cores; the full render when the drag ends waits for the
  exact tile. Size drag: 62-66 -> 13-14 ms a frame. wasm drafts still wait.
- Stamps draw each row as a 64-bit mask, a fixed number of rows per layer,
  rows outside the band landing in scratch rows around it: no branch per row.
  Tiles 10-20 % faster at every setting, bit-identical.

Tests: GPU grain patterns in turn (same, new size, new roughness, new seed,
back) match the CPU; a drag takes the last tile while the next is drawn, then
the exact one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 08:59:46 +11:00
..
2026-10-31 02:31:16 +00:00
2026-10-31 02:31:16 +00:00
2026-10-31 02:31:16 +00:00
2026-10-15 03:24:51 -04:00
2026-10-08 20:20:17 +00:00
2026-10-24 22:28:38 +04:00
2026-10-31 02:31:16 +00:00
2026-10-31 02:31:25 +00:00
2026-10-31 02:31:25 +00:00