mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-14 14:22:39 +00:00
A frame that doesn't wait for images queues the work (reading a linked file, rewriting a PDF with layers hidden, measuring a Bounding Box crop, finding an image's tone) on a background thread and draws a stand-in: decodes cached under a layer variant's key, else the loading box. Each checks images::unavailable first, so a missing or modified link is read once until the links change, and loads happen outside the caches' locks. Kept layer variants have a 256 MiB byte budget besides the count limit.