mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 15:08:40 +00:00
On every frame the Image Trace panel put the whole selection in paint order twice and scanned it a third time to find the object Trace acts on; its panel menu scanned it again. The panel and its menu now look it up once for each document revision and reuse the result on later frames. The lookup puts only the selected images and Image Trace objects in paint order, and reads the target in place instead of copying it. The target, its flags, its stored settings and whether any selected object is an Image Trace object are the same as before, field for field. With 100,000 selected paths in nested groups and one selected image, a frame's lookups took a median 120 ms before; the first frame after a change now takes 10 ms and later frames about 50 ns.