mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-24 10:09:01 -06:00
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