Files
lightcraft/crates
Matej Vrzala dadb0dfc79 Colour-range mask: cap the number of samples from automation
A colour-range mask compares every pixel against every sample, so
render and export cost is pixels x samples. The interactive sampler
stops at 5, but mask.add / mask.update (colorRange) passed their
`samples` array straight through, so a few hundred samples on a large
render turned into billions of operations and hung rendering and
export. The project already caps similar lists (MAX_STROKE_DABS,
MAX_DETAIL).

The samples list from automation is now capped at 64.

Test: a request with 1000 samples is cut to 64; a two-sample request is
unchanged.

Reported-by: BS.ehlas.cz
2026-10-23 09:46:14 +02:00
..
2026-10-22 02:53:00 +00:00
2026-10-21 14:54:06 +00:00
2026-10-15 03:40:17 -04:00
2026-10-22 02:53:42 +00:00
2026-10-22 02:53:42 +00:00
2026-10-22 02:49:52 +00:00