[SOLVED] Performance hit -> DetailView in 0.20.28929 vs. 19.24366

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
M4x
Veteran
Posts: 1474
Joined: Sat Mar 11, 2017 9:23 am
Location: Germany

[SOLVED] Performance hit -> DetailView in 0.20.28929 vs. 19.24366

Post by M4x »

Hey,

I've recognized a massive performance hit while changing DetailViews (TechDraw_DetailView) in 0.20 compared to 0.19. In 0.20, it takes 8 to 12 seconds to increment the radius by 1 mm and "free up" the mouse again (= changes the input field if I click in it). I can see one CPU core going up to 100% and the fan starts spinning. On 0.19, such adjustments happen instantly. I've attached my example file.

I don't know if it's related, in 0.20 I'm having problems regarding the pathes for the Hatch Pattern File, Line Group File, Welding Directory and PAT File: https://forum.freecadweb.org/viewtopic.php?f=35&t=68996
Snip macro screenshot-964a8d.png
Snip macro screenshot-964a8d.png (44.92 KiB) Viewed 678 times

I've used this versions:

Code: Select all

OS: Ubuntu 20.04.4 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24366 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0f9259c)
Hash: 0f9259cda103ae1824ac16c68ac9b4a0d54b05fc
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/United States (en_US)

Code: Select all

OS: Ubuntu 20.04.4 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.28929 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 6f24fd3)
Hash: 6f24fd3053a89a5fb12ab765f9df93ec04deeac1
Python 3.9.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods: 
  * LCInterlocking
  * kicadStepUpMod 10.12.4
  * Lithophane
  * lattice2 1.0.0
  * Defeaturing
  * Manipulator
  * fasteners 0.3.41
  * sheetmetal 0.2.49
  * Assembly4
  * Curves
  * POV-Ray-Rendering
  * 3DfindIT 1.2.0
Thanks!
Attachments
TD_DetailView_1.FCStd
(49.85 KiB) Downloaded 11 times
Last edited by M4x on Sun May 29, 2022 6:31 pm, edited 1 time in total.
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Performance hit -> DetailView in 0.20.28929 vs. 19.24366

Post by wandererfan »

M4x wrote: Sat May 28, 2022 1:14 pm I've recognized a massive performance hit while changing DetailViews (TechDraw_DetailView) in 0.20 compared to 0.19.
First thing to look at is "Debug Detail" on the Advanced tab in Preferences. It should be unchecked. If it is checked, there will be a bunch of disk I/O that will slow things down.

Here, my v0.20 recomputes are ~4 seconds, not 8-12 seconds. V0.19 is faster, but v0.20 is doing more work to eliminate visual artifacts in the detail view.

Code: Select all

OS: Linux Mint 20.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.20.28949 +1 (Git)
Build type: debug
Branch: fixSpuriousRecompute
Hash: fedbaa2589c8ff8a828d1a338896aed5deee73c9
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, OCC 7.5.2
Locale: English/United States (en_US)
Installed mods: 
  * A2plus 0.4.54b
  * Curves 0.3.0
  * fasteners 0.3.40

Code: Select all

OS: Linux Mint 20.3 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 0d9536ed3e8c7f40197b5606e1b7873625e1d6fe
Python version: 3.8.10
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United States (en_US)
User avatar
M4x
Veteran
Posts: 1474
Joined: Sat Mar 11, 2017 9:23 am
Location: Germany

Re: Performance hit -> DetailView in 0.20.28929 vs. 19.24366

Post by M4x »

Thanks for your reply! "Debug Detail" is unchecked. However, today I'm not able to reproduce the described behavior. Therefore I'll mark this thread as solved.

Thanks!
Post Reply