What makes this model so slow?
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
What makes this model so slow?
Since some change I did to a model (I'm unsure which one), FreeCAD (Part Design WB) takes a very long time to calculate each update (opening/adding sketch, changing parameters etc.).
The model has two part design bodies (+ some imported from STL/step), the second one uses a Shapebinder from the first one as Base Feature (hints how to do this better are welcome, but this is a secondary question).
Every small change to the bodies (paramter, sketch etc.) results in > 1 Min time to update the model (on a decent CPU (Ryzen5 Hexacore)). This was not the case with design very similar to the current one (already with the shapebinder). Can someone explain me, what is the issue? Or help me how to analyze on my own?
The freecad file is too large, so I uploaded it to github:
https://github.com/euphi/TRGB-BikeCompu ... r-FL.FCStd (Direct (raw) download: https://github.com/euphi/TRGB-BikeCompu ... r-FL.FCStd
(Note the gap between the two parts is intended (space for TPU seal))
FreeCAD is current weekly version (0.21.0 Build 32637 and several previous builds).
The model has two part design bodies (+ some imported from STL/step), the second one uses a Shapebinder from the first one as Base Feature (hints how to do this better are welcome, but this is a secondary question).
Every small change to the bodies (paramter, sketch etc.) results in > 1 Min time to update the model (on a decent CPU (Ryzen5 Hexacore)). This was not the case with design very similar to the current one (already with the shapebinder). Can someone explain me, what is the issue? Or help me how to analyze on my own?
The freecad file is too large, so I uploaded it to github:
https://github.com/euphi/TRGB-BikeCompu ... r-FL.FCStd (Direct (raw) download: https://github.com/euphi/TRGB-BikeCompu ... r-FL.FCStd
(Note the gap between the two parts is intended (space for TPU seal))
FreeCAD is current weekly version (0.21.0 Build 32637 and several previous builds).
- Shalmeneser
- Veteran
- Posts: 9560
- Joined: Wed Dec 23, 2020 12:04 am
- Location: Fr
Re: What makes this model so slow?
Are they also time relevant or is this rather a general remark?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
- Shalmeneser
- Veteran
- Posts: 9560
- Joined: Wed Dec 23, 2020 12:04 am
- Location: Fr
Re: What makes this model so slow?
TNP here is a general remark but it's not helping if you want to suppress a certain feature.
Re: What makes this model so slow?
Well, I tried to avoid TNP whenever possible, but many of the sketches need to be on specific faces of "later" features.
I also don't see why TNP should slow done recalculation that much?
Also, CheckGeometry does not show any issues for the bottom part and two (related) errors for the top part.
I don't understand the reason for these errors, because model looks exactly as intented. Also, I see no reason why these should slow down recalculation.
I also don't see why TNP should slow done recalculation that much?
Also, CheckGeometry does not show any issues for the bottom part and two (related) errors for the top part.
I don't understand the reason for these errors, because model looks exactly as intented. Also, I see no reason why these should slow down recalculation.
Re: What makes this model so slow?
I'm not too surprised with the calculating time because there are a lot of features. Little bit compelling anyway. A get around could be to separate a body with 2: splitting the workflow by two parts. The first body could be link with a basefeature inside the next.
Re: What makes this model so slow?
I find the automatic refine to be suspicious. Alas, due to mapping on faces, this is not easily be changed.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
- thomas-neemann
- Veteran
- Posts: 11921
- Joined: Wed Jan 22, 2020 6:03 pm
- Location: Osnabrück DE 🇩🇪
- Contact:
Re: What makes this model so slow?
I only use Sketcher when it offers advantages over draft (arch) (e.g. tangential transitions, kinematics or automatic closing of open contours). I find it too slow for larger sketches, even without tnp or other errors
Re: What makes this model so slow?
1. Turn off 'Boden002' Body. (space bar to hide)
2. Expand Deckel Body.
3. Go to Part Workbench.
4. Select Aussenform in your Model tree. Go to Part | Check Geometry. It will check OK.
5. Work your way down through the other objects. You start to see problems at Box - akku.
The problems relate to the way you are using datum planes, especially the definition of their 'support'.
By linking the datum plane support to faces in your model you are bound to have issues with TNP.
To avoid this create datum planes that are not linked to any object at the support level. You can still change their placement using formulas.
As shown below.
After you have created the shown datum planes you have to change the support on your parts to reference the datum planes, not the part faces.
This avoids using 'Named Faces' as a reference to your geometry and should allow you to avoid TNP.
You will have to 'redefine' your external geometry in some of your sketches. That is again because of TNP.
And yes, Speed issue goes away after adding these Datum Planes.
2. Expand Deckel Body.
3. Go to Part Workbench.
4. Select Aussenform in your Model tree. Go to Part | Check Geometry. It will check OK.
5. Work your way down through the other objects. You start to see problems at Box - akku.
The problems relate to the way you are using datum planes, especially the definition of their 'support'.
By linking the datum plane support to faces in your model you are bound to have issues with TNP.
To avoid this create datum planes that are not linked to any object at the support level. You can still change their placement using formulas.
As shown below.
After you have created the shown datum planes you have to change the support on your parts to reference the datum planes, not the part faces.
This avoids using 'Named Faces' as a reference to your geometry and should allow you to avoid TNP.
You will have to 'redefine' your external geometry in some of your sketches. That is again because of TNP.
And yes, Speed issue goes away after adding these Datum Planes.
Re: What makes this model so slow?
That doesn't really contribute to an explanation why this model recomputes slow. It might not even offer a solution without knowing where the problem comes from, I doubt very much that it is the Sketcher.thomas-neemann wrote: ↑Sat Apr 01, 2023 11:22 am I only use Sketcher when it offers advantages over draft (arch) (e.g. tangential transitions, kinematics or automatic closing of open contours). I find it too slow for larger sketches, even without tnp or other errors
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.