Login  Register

Re: Working on my preferences, missing in LibreCad

Posted by dxli on Dec 07, 2024; 4:20pm
URL: https://forum.librecad.org/Working-on-my-preferences-missing-in-LibreCad-tp5725761p5725776.html

We have performance issue with mtext.

I will do a profiling to with your files to get some ideas of the critical methods.

From there, we will tweak the algorithms first.

sand1024 wrote
well, as for the optimizations for small entities - well, I'll check that the user is able to disable them.

However, I can say that they delivers quite a significant impact on generic performance.

You can roughly check this on large files (say, the test set I've used by my tests, it's available as attachments to the following pull request: https://github.com/LibreCAD/LibreCAD/pull/1922

Btw, please check the discussion regarding that pull request and mtext performance rendering in comments for that pull request).

And if you'd like to check how some your changes affects the rendering pipeline - well, just rename define
#define DEBUG_RENDERING_ to #define DEBUG_RENDERING in rs_graphicview.h (and rebuild the project).

That define will enable collection of rendering time within paint event. Of course, metrics collected there are quite rough, yet are still informative. Of course, in order to see the difference, the dxf file with really large amount of entities should be used - and that's why tests from that pull requests should be fine.