preprocess_cancellation icon indicating copy to clipboard operation
preprocess_cancellation copied to clipboard

Hull building is very slow on embedded systems

Open Jookia opened this issue 1 year ago • 1 comments

Moonraker imports this package for preprocessing prints on embedded Linux boards like the Pi Zero. For the most part this is a great feature, but on large prints it's very very slow.

I did some profiling and the issue comes from the time spent parsing each G-code step to build a hull, even if the hull is just going to be a bounding box without shapely installed. Disabling this feature manages to cut around 100 seconds off the preprocessing time.

While having people do preprocessing in their slicer would be much better, it seems like people rely on this feature now.

Maybe a compromise would be to disable this hull building by default and falling back to any bounding box a slicer includes. I know that PrusaSlicer and friends provide this information.

Jookia avatar Feb 23 '23 02:02 Jookia