mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
The tool rail built every slot again in every frame: a command and a caption for each tool, and a walk of the tool catalog for each slot's id. It now keeps the tool groups its slots came from and builds the slots again only when those groups or the UI language change. Slot ids come from a table built once. The Properties panel listed its Quick Actions in every frame, which checks several commands and walks the selection. The list is now kept with a key made of the menus' state, the document and its revision, the tool and isolation mode, and is listed again only when the key changes. Frame benchmark (1920x1080 at 2x, 400 objects, median UI-thread time of 300 frames): idle 5.64 ms to 5.51 ms, 400 objects selected 17.75 ms to 16.46 ms; allocations per frame 13,439 to 13,121 idle and 70,090 to 68,169 selected. The tests count the slots built and the Quick Actions lists made per frame.