Slow multiple linked views

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Anon
Posts: 12
Joined: Wed Oct 29, 2014 9:42 am

Slow multiple linked views

Post by Anon »

Hi,
running the newest FreeCAD version

Code: Select all

OS: Arch Linux (GNOME/gnome-xorg)
Word size of FreeCAD: 64-bit
Version: 0.20.24928 (Git)
Build type: Release
Branch: master
Hash: b0364e466a79def0e91285714ae56f8a1ff95936
Python version: 3.9.5
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)
I find the techdraw module essentially useless. It takes several minutes to draw the 2D shape on an A3 page on this AMD Ryzen 7 1700/Radeon RX Vega/24GB RAM machine.

Any idea why? Is it the use of the addon "Fasteners Workbench" for the threads?
Attachments
Optics holder - Mk. I.FCStd
(458.44 KiB) Downloaded 44 times
User avatar
Roy_043
Veteran
Posts: 8550
Joined: Thu Dec 27, 2018 12:28 pm

Re: Slow multiple linked views

Post by Roy_043 »

Do helical threads have an impact on computation time? Yes of course!
Anon
Posts: 12
Joined: Wed Oct 29, 2014 9:42 am

Re: Slow multiple linked views

Post by Anon »

Going from "almost instant" to "1st view takes tens of seconds, 2nd view takes several minutes, 3rd view takes unknown amount of time since I kill the whole program after half an hour" is something I wouldn't describe as "impact on computing time".
I mean on a slower machine one wouldn't even wait for the 1st 2D view to render.

And the thing is the CPU isn't even doing anything when these 2D views are rendering. Sure sometimes one of the cores spikes up to 100% for a while but then it backs down to 20-30%.
User avatar
Roy_043
Veteran
Posts: 8550
Joined: Thu Dec 27, 2018 12:28 pm

Re: Slow multiple linked views

Post by Roy_043 »

You did not talk about half an hour in you first post. But make no mistake: the helical threads are causing the problem. Try switching the 'Thread' property of the fasteners to 'false'. If you really need threads use simplified 'cylindrical' threads.
Anon
Posts: 12
Joined: Wed Oct 29, 2014 9:42 am

Re: Slow multiple linked views

Post by Anon »

Yeah my bad. It gets progressively worse the more 2D views you add. Still I believe there might be a bug somewhere since the CPU usage shouldn't be this low.

Yes with the false setting it's a breeze. :)
Post Reply