mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-17 15:36:43 +00:00
A layer with Transparency Shapes Layer off takes the whole canvas as its effect region, so on a 1920 x 103675 page each such stroked layer built ~2.4 GB of effect maps, and a render held them for every layer at once. Every edit's damage rect rebuilt them: 13 s and 11+ GB for three layers, past 24 GB for ten. When such a layer's effects are local (no gradient strokes, Precise glows, chiselled bevels or noise) and it is composited within the rectangle being rendered (each band of render_bands, or a damage rect), build its maps over that rectangle padded by twice the effect reach, and let them go when the next band starts. Composited over anything wider (a group's effect shape renders its children over the group's whole region) it keeps the whole region. The pixels are unchanged: a test renders every local effect kind, masked and unmasked, inside a group with far-reaching effects and clipped to a base with a wide glow, at 8/16/32 bits, in bands, parts and tiles from a cold effect cache, and compares bit for bit with the whole render. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>