mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-07 14:33:34 +00:00
The Layers and Links panels share one thumbnail thread across documents, and it ran its jobs in the order they came. Rows of a document left with a long queue held up the thumbnails of the next document shown. The thumbnail thread can now drop the jobs it has not started for some slots. Each frame the Layers and Links panels name the document they show; when it changes, the queued jobs of every other document are dropped, and when no document is open, all of them are. Those rows ask for their thumbnails again when their document shows again, and the thumbnails already made are kept. The Navigator and the arrange panes do not use the new call. With 150 rows of 20,000-anchor paths queued for one document, the 8 rows of such paths of the next document shown get their thumbnails in 153 ms instead of 3,265 ms (debug test build, median of three runs).