mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-14 22:35:26 +00:00
The image cache keys decodes by the bytes' address, so a variant rebuilt as a new Arc misses the decodes it already has. With decodes in the background, more variants on screen than the variant cache kept would decode and re-render without end. Variants are now looked up weakly, with the 64 most recent held strongly. Based on #2051 by texjer.