ok the browser based version of what I use is now at:
https://fenrus75.github.io/FenrusCNCtools/ccopt/ccopt.html
the key optimizations are
- go up with G0
- eliminate very small movements < step size (generated in advanced vcarve a bunch)
- for several key cases, don’t retract all the way between “layers” of a pocket… if the tool can prove how to get to the beginning without needing to retract, it won’t
- remember previous depths of the last 32 plunges, so that a G0 can be used instead of a G1
video of a design before the optimization:
and after: