Gcode export very slow

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Gcode export very slow

Post by herbk »

Hi
since a few Versions ( i don't remember since wich) Path needs very long to export a gcode file.
holes.jpg
holes.jpg (103.47 KiB) Viewed 1435 times
If i export this milling path with FC 0.19.17512 (a well working release i keep) it needs a few secounds (may be about 10).

If i export it with one of the newer AppImages the export need more then 5 Minutes.

The last version i try'd with:

OS: openSUSE Leap 15.1 (KDE//usr/share/xsessions/plasma5)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19443 (Git) AppImage
Build type: Release
Branch: master
Hash: 74680b8a15ad37e53eee0d341e95cd32631d88a3
Python version: 3.8.1
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: German/Germany (de_DE)

But it's the same with the last releases before
Gruß Herbert
chrisb
Veteran
Posts: 54273
Joined: Tue Mar 17, 2015 9:14 am

Re: Gcode export very slow

Post by chrisb »

Can you upload a file for reference with a preferably simple model?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Gcode export very slow

Post by herbk »

Today evening, i'm at work atm...
Gruß Herbert
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Gcode export very slow

Post by herbk »

OK, had time to create a liite example:
adap_test.jpg
adap_test.jpg (46.11 KiB) Viewed 1404 times
To export the Job to a gcode file FC 0.19.17512 needs less 2 secounds, FC 0.19.19443 needs 71 secounds.

Yesterday i'v had to export the milling path for the parts at the pic above (Adaptive- and Contour Ops, Contour OPs with Ramp Entry and Holding Tag Dressup). This needs not much less one hour from clicking the export button to the shown gcode...

If i use the Pocket OP instead of Adaptive the export works much faster at newer Appimages to (less 3 sec with this example at the 0.19.19433) but still longer as at FC 0.19.17512-
Attachments
adapt_test.FCStd
(400.39 KiB) Downloaded 25 times
Gruß Herbert
chrisb
Veteran
Posts: 54273
Joined: Tue Mar 17, 2015 9:14 am

Re: Gcode export very slow

Post by chrisb »

If I suppress the display of the code with --no-show-editor it works again in seconds.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Chowderhead
Posts: 20
Joined: Sat May 14, 2016 6:01 pm

Re: Gcode export very slow

Post by Chowderhead »

I'm having the same problem; frustratingly slow. @chrisb: how do you invoke that argument?

OS: Debian GNU/Linux 10 (buster) (XFCE/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19541 (Git) AppImage
Build type: Release
Branch: master
Hash: a797a4172709b82c6cd08dcf6df86cb789aaa3ce
Python version: 3.8.1
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)

Also tried on the Debian release version with the same result:

OS: Debian GNU/Linux 10 (buster)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.
Build type: Release
Python version: 2.7.16rc1
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Last edited by Chowderhead on Tue Feb 11, 2020 5:25 pm, edited 1 time in total.
chrisb
Veteran
Posts: 54273
Joined: Tue Mar 17, 2015 9:14 am

Re: Gcode export very slow

Post by chrisb »

- Edit Job, either during creation or doubleclick an existing
- select Output tab
- enter the parameter in the "Arguments" field.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Chowderhead
Posts: 20
Joined: Sat May 14, 2016 6:01 pm

Re: Gcode export very slow

Post by Chowderhead »

@chrisb: Thank you! Went from an hour or more to a few seconds!
chrisb
Veteran
Posts: 54273
Joined: Tue Mar 17, 2015 9:14 am

Re: Gcode export very slow

Post by chrisb »

I was impressed by the time gain myself, even more so, as each editor can display it in seconds as well. I guess it's a Qt thing, where the FreeCAD developers can do probably nothing.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Gcode export very slow

Post by herbk »

Hi Chris,
chrisb wrote: Tue Feb 11, 2020 7:35 pm I was impressed by the time gain myself, even more so, as each editor can display it in seconds as well. I guess it's a Qt thing, where the FreeCAD developers can do probably nothing.
why this should be a QT thing, if one FC works fast and an other slow? Both FC versions at the same machine of course.
Gruß Herbert
Post Reply