This is a set of postprocessing script for only SuperSlicer to accelerate the infills and perimeters printing speed using the Klipper's Square Corner Velocity (SQV) feature.
The post-processing script will read the .gcode file to put the necessary macro command to modify the value of SQV for infills and perimeters keeping everything else as the default SQV value that the user has set in the printer.cfg
. Since that the infills and internal perimeters do not affect the quality of the print, thus the reason why I would want to add the features of adjusting each SQV value for different feature of type to print faster. However, increasing the SQV value too high will remove details on the surface and rounded the corner of the print.
NOTE:
- From my experience, the post-processing script make my overall print 5-6% faster than what the SuperSlicer software has predicted.
This is mandatory, whatever the slicer you use:
- Add the
save_variable
section to yourprinter.cfg
if you don't already have it. For eg.:[save_variables] filename: ~/klipper_config/saved_variables.cfg
- Copy the content of
fast_infill.cfg
into yourprinter.cfg
- If you use a standard screen (not KlipperScreen), you can also add the content of
menu_fast_infill.cfg
. This will add 2 entries in yourTune
menu to be able to set some values without going to the fluidd/mainsail interface - Once you have added the configuration to your klipper configuration, restart Klipper
- When the machine is back online, run the command
SET_INFILL_SQV SQV=<VALUE>
. This will define the SQV value you want to use during the infill. I suggest a value of20
if your printer is capable of going very fast (eg. Voron, RatRig VCore-3, ...).
Extra Step:
- Run other command
SET_INTERNAL_PERIMETER_SQV SQV=<VALUE>
and other commands to define the SQV value you want to use.
You can update the SQV value for infill while it's printing by using the same command above. It will be applied during the next infill run. If you don't want to modify the infill SQV, just set the value to the same value as your default SQV.
NOTE:
- Ensure that the printer is perfectly tuned to handle high printing speed otherwise layer shift and other artifacts may occur during the printing process.
- Copy the
FastSQV.py
file from the repository's superslicer folder in a folder on your computer where superslicer runs. Put it in a folder without any space. - Install Python (if you are using Windows, don't install python from the Microsoft Store, it won't work)
- Reference the post processing script into your superslicer configuration. Eg. for Windows:
- Run your slicing as usual and export or upload the file to your printer. If everything works as ecpected, you'll see a black terminal window poping up (that is the script running).
If you open the gcode file after postprocessing, you should find references to _USE_INFILL_SQV
, _USE_NORMAL_SQV
, and other macro commands.
Thanks to RomRider who make the klipper-FastGyroidInfill post-processing script which this script is heavily based on. All of the original code is thanks to this guy's work and dedication, and I added several more lines to the script.