[Solved] Re: FreeCAD on macOS became utterly slow

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
chrisb
Veteran
Posts: 53923
Joined: Tue Mar 17, 2015 9:14 am

[Solved] Re: FreeCAD on macOS became utterly slow

Post by chrisb »

When moving from 0.20.29177 to 0.21.29865 FreeCAD became so slow that it is almost unusable. When I turn this cube with the mouse in 3D view I get with the old version this speed of 50-60 fps.

Edit: It was still fast in 0.21.29393

With the current version I have only 1/20 of this: 1-3 fps.

This happens not only in 3D view but also e.g. in Sketcher: Collapsing or expanding the constraints list at the left takes with the old version ~1 second. Doing the same in the current version takes 5 seconds. I can really see it moving line by line.

@looo: Is there some optimization missing?

Fast version

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: C/Default (C)
Installed mods: 
  * FC_SU
  * DynamicData 2.46.0
  * FeedsAndSpeeds 0.4.0
  * fcgear
  * fasteners
  * sheetmetal
  * ExplodedAssembly
  * Curves 0.3.0
Slow version:

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.29865 (Git)
Build type: Release
Branch: master
Hash: fb5c731847398c5bfbc37468ba851e70860a86d5
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: C/Default (C)
Installed mods: 
  * FC_SU
  * DynamicData 2.46.0
  * FeedsAndSpeeds 0.4.0
  * fcgear
  * fasteners
  * sheetmetal
  * ExplodedAssembly
  * Curves 0.3.0
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
edwilliams16
Veteran
Posts: 3107
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: FreeCAD on macOS became utterly slow

Post by edwilliams16 »

Code: Select all

OS: macOS High Sierra (10.13)
Word size of FreeCAD: 64-bit
Version: 0.21.29971 (Git)
Build type: Release
Branch: master
Hash: 29197f503dc8c802cd82c968d16f5e1356365bda
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: C/Default (C)
Installed mods: 
  * Curves 0.5.4
  * DynamicData 2.46.0
  * fasteners 0.3.51
  * fcgear 1.0.0
  * GDML 1.8.0
  * Help 1.0.3
  * lattice2 1.0.0
  * MeshRemodel 1.8919.0
  * toSketch


I just updated from a early July Mac version - neither was/is slow.
My curves is actually
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD on macOS became utterly slow

Post by adrianinsaval »

what happens with a clean config?
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FreeCAD on macOS became utterly slow

Post by wmayer »

You should try to get a new build that uses the old libraries: Python 3.9.13, Qt 5.12.9, (and rather unlikely OCC 7.5.3)
chrisb
Veteran
Posts: 53923
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD on macOS became utterly slow

Post by chrisb »

A clean config does the trick. I will start the hard work and try to find what causes it. I will start with Software OpenGL and VBO.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53923
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD on macOS became utterly slow

Post by chrisb »

It was none of the usual suspects. I will start creating a preference pack of my most important ones. That seems to be better than restoring the whole stored config anyway.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53923
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD on macOS became utterly slow

Post by chrisb »

wmayer wrote: Mon Aug 08, 2022 7:32 pm You should try to get a new build that uses the old libraries: Python 3.9.13, Qt 5.12.9, (and rather unlikely OCC 7.5.3)
My first guess was not so bad: it was the "Use software OpenGL" (which I had to set when the current version of macOS was introduced).

The problem was, that changing it in the settings has no effect on the running instance. It takes effect on next restart.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FreeCAD on macOS became utterly slow

Post by wmayer »

chrisb wrote: Sun Aug 14, 2022 9:46 am The problem was, that changing it in the settings has no effect on the running instance. It takes effect on next restart.
Yes, it must be set before creating a QApplication in order to take effect.

So, if I got you right it's fast if the option is not set but becomes slow after setting it and restarting FreeCAD -- which actually makes sense. But do you must set it to achieve correct behaviour?
chrisb
Veteran
Posts: 53923
Joined: Tue Mar 17, 2015 9:14 am

[Solved] Re: FreeCAD on macOS became utterly slow

Post by chrisb »

wmayer wrote: Sun Aug 14, 2022 11:18 am But do you must set it to achieve correct behaviour?
No it runs perfectly now without. It was in the beginning of macOS 12 where I needed it. Looo has in the meantime added some specific environment variables and Apple has made some updates too. So everything ok now!
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
DanielIS
Posts: 1
Joined: Wed Oct 20, 2021 3:17 pm

Re: [Solved] Re: FreeCAD on macOS became utterly slow

Post by DanielIS »

Thank you very much, just update to 0.20.1 and had this problem, it drove me Crazy.
Post Reply