mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-07 16:52:47 +00:00
The marquee's segment test built a two-anchor path for every segment and ran hit::intersects_rect on it. It now skips a segment whose anchors and handles all lie past one side of the marquee, and tests the rest directly with the same bounds and edge checks, so it selects the same segments. A marquee over 10,000 anchors, press to release (anchor_bench, median of 7): one open path of 200,000 anchors 84.9 ms -> 24.1 ms, 2,000 closed paths of 50 anchors 27.5 ms -> 13.5 ms, one closed path of 50,000 anchors 14.6 ms -> 8.5 ms.