mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-27 12:41:06 -04:00
The overlay re-stroked the whole finished trail on every paint: about 275 ms at zoom-to-fit on a 392-part plate and over 11 s zoomed in, where dashed rapids spanned millions of on-screen dashes. The finished trail is now cached in a bitmap at the current scale, so a pan or playback frame blits it and draws only the moves since. A wheel zoom stretches the cached image until the wheel has been still for 150 ms, then redraws it sharp. When the trail would be too large an image, each paint draws only the moves on screen and clips straight rapids to the view. Arcs are added as GDI+ arcs instead of 5-degree polylines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>