Auto Trim slow performance

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
bruno_silva
Registered Member
Posts: 1
Joined: Wed Sep 08, 2021 2:04 pm

Auto Trim slow performance

Post by bruno_silva » Wed Sep 08, 2021 2:36 pm

Hi guys.

When we use auto trim to auto adjust/cut intercections, it takes like 47 seconds for QCad to process.

Please see images attached:
- before.png is when I clicked the inside line.
- after.png is the desired result, as you can see, it works fine, but it took 47 senconds.

- If we try with smaller drawings (with only one element in the grid), the auto trim process in 1 second.
- It only takes that long (+40s) with bigger drawings, with many elements in the grid.

It doesn't looks that it's a hardware limitation (hardware and S.O. specifications below), during the auto trim processing, my CPU is under 50% and RAM under 60%.

It seems like the app will check all the other drawings in the grid to process the auto trim in the line selected.

Is there any application settings to avoid this and make it faster?

Hardware and S.O. specifications:
- CPU AMD Rayzen 7 5700U 1.77 GHz
- RAM 16GB
- Windows 10 Pro
- QCad version: 3.26.4.0 (3.26.4)

Thank you very much for your help!
Attachments
before.png
before.png (141.68 KiB) Viewed 3499 times
after.PNG
after.PNG (78.1 KiB) Viewed 3499 times

CVH
Premier Member
Posts: 3477
Joined: Wed Sep 27, 2017 4:17 pm

Re: Auto Trim slow performance

Post by CVH » Wed Sep 08, 2021 5:17 pm

Hi,

Without the mentioned 'large' file we can't help you efficiently.
There are more things that may induce lagging.
Lagging 40 seconds is rather stalling. :wink:
bruno_silva wrote:
Wed Sep 08, 2021 2:36 pm
It seems like the app will check all the other drawings in the grid to process the auto trim in the line selected.
Basically it checks indeed against all other entities in the drawing model space as trimming candidates.

But you are right ...
... With a file with 400 basic entities ...
... No Block References, Splines, Hatches and so on ...
... AX on an arc shape traversed by 2 lines takes about 4 seconds. :shock:
For the good order: Win7Pro QCAD Pro Version: 3.26.4.5 Revision: e596276 Qt Version: 5.13.2 Architecture: i386

With such a large circle shape I would Break out Manually (B2) choosing what to remove.
With such a large arc shape I would Divide (DI) twice and remove unwanted segments.

Regards,
CVH

CVH
Premier Member
Posts: 3477
Joined: Wed Sep 27, 2017 4:17 pm

Re: Auto Trim slow performance

Post by CVH » Fri Sep 10, 2021 10:05 am

Trim Auto (AX) rather slow with many text entities ...
Same lag with D2 on Circle entities.
Slower for larger Arcs/Circles.
Same while trimming line entities.

Filed bugreport
https://www.ribbonsoft.com/bugtracker/i ... sk_id=2277

Regards,
CVH

CVH
Premier Member
Posts: 3477
Joined: Wed Sep 27, 2017 4:17 pm

Re: Auto Trim slow performance

Post by CVH » Fri Sep 10, 2021 11:09 am

Good news ... Fixed for the next release.
Text entities are now excluded from the intersecting shape search.

For those who can manage ...
The fix is in ShapeAlgorithms.js what is open source.

Regards,
CVH

Post Reply

Return to “QCAD 'How Do I' Questions”