-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Techdraw performance issues #12362
Comments
@blinking-led can you try out the performance of the dev builds: https://github.com/FreeCAD/FreeCAD-Bundle/releases/tag/weekly-builds |
I have compiled FreeCAD with gprof and pressed some buttons in PartDesign, Sketcher and more buttons in TechDraw. The output says that FreeCAD spends time dealing with Perhaps, this is the right time to make use of OS: Ubuntu 22.04.3 LTS (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.35936 (Git)
Build type: Debug
Branch: main
Hash: b39d246c27ccbec0a503cd2d5e6dc08762951300
Python 3.10.12, Qt 5.15.12, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.1
Locale: English/United States (en_US) |
@WandererFan can you help out here? |
Whenever I've run TechDraw under valgrind, the majority of time is spent deep in the bowels of occ calculating intersections. Off hand, I can't think of anywhere TechDraw does enough string comparisons to compete with that. Maybe the same comparison a ridiculous number of times? The picture looks like a circuit board. Those are often slow to build due to the large number of faces to be checked. You can use CoarseMode, set the Page to not update or turn off face finding to speed things up until you are ready to produce a finished drawing. |
Fine, I'll try Google's Orbit or tweak some options to get more useful information about the performance. But I'm right that the power of |
Thank you for answering! WandererFan About "large number of faces" I made a "Simple copy" of DSK cabinets in the Part WB, and it changed the situation in the right way, but not enough. There might be a problem, while using TechDraw WB exclude calculation faces that are placed behind the front face? |
Today, I tried night build, but without any changes.
|
Today, I'm trying to nightly build:
Wonderful! I make techdraw, but the UI shows only blank templates. After about 1–2 minutes, drawings appear.
|
I can't be sure without a test file, but those BOPAlgo_Alert messages look like something you'd get if the input shape has problems. @pavltom - might need your help here. |
Hello, I have tried to import the R5CQE2085.step file. The model is pretty detailed and I am running a debug build of FreeCAD, nevertheless for me it loaded in about 30s. I have inserted few views from different angles into an A4 page, but although the rendering consumed about 2 minutes, it always produced an usable part view. I have scaled the view to fit the page, but again, so far no issues. The UI is not much responsive (sluggish at least), but there is really a lot of faces/edges to process. @blinking-led maybe could You provide a saved document, which is causing You the troubles? Or some step-by-step scenario with the R5CQE2085.step file to reproduce the issue? I know this is rather a cliche, but on my machine everything works correctly ;-) |
This comment was marked as off-topic.
This comment was marked as off-topic.
@pavltom Thank you! File attached. |
"Scale to page" in TechDraw works uncorrect with the file If I add some views and after that change in scale, the projection views become too far from each other. |
One more bug. After reopening my file with dimensions, some of them became "zero", some of them lost their place.
P.S. |
@blinking-led Yes please close this if irrelevant and make another with the bug. |
@blinking-led, did you file a new bug? I am having a similar problem with periodic hanging accompanied by log output as follows.
|
The bad positioning and self interfering shape messages indicate that there are problems with the geometry of the source objects. OCC really does not like problems with geometry. |
I was thinking about dumping these OCC warnings on the Log level, instead of Warning level. I guess it can be quite confusing for a common user and as we can see above, it is unnecessarily flooding the log. What's your opinion? |
Is there any way to determine which element is triggering those warnings? |
Is there an existing issue for this?
Problem description
HI, everyone!
When I try to work with the Techdraw WB, it hangs with a high-load CPU. Techdraw works with two frames per minute. You can see it in the screenshot. When I delete Techdraw FreeCAD works well. Any suggestion?
Intel core i5 1035G / 16 Gb / SSD
Full version info
Subproject(s) affected?
None
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: