Files
lightcraft/crates/engine/src
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-15 01:42:11 -04:00
2026-10-15 00:31:26 -04:00
2026-10-15 01:43:02 -04:00
2026-10-11 12:00:21 +00:00
2026-10-15 03:24:51 -04:00
2026-10-22 02:53:00 +00:00
2026-10-22 02:53:00 +00:00
2026-10-11 12:01:18 +00:00
2026-10-15 00:50:08 -04:00
2026-10-14 21:58:37 -04:00
2026-10-15 00:22:08 -04:00
2026-10-15 00:22:08 -04:00
2026-10-15 03:40:17 -04:00
2026-10-14 23:23:18 -04:00
2026-10-22 02:53:00 +00:00
2026-10-09 20:36:10 -04:00
2026-10-14 23:46:16 -04:00
2026-10-22 02:53:00 +00:00