realthunder / FreeCAD_assembly3

Experimental attempt for the next generation assembly workbench for FreeCAD
GNU General Public License v3.0
885 stars 74 forks source link

Gradually worsening move performance when using `QT_QPA_PLATFORM=wayland` and links #1316

Open Bobo1239 opened 1 year ago

Bobo1239 commented 1 year ago

I've encountered a very strange performance problem with assembly3 which only occurs when using FreeCAD with the environment variable QT_QPA_PLATFORM set to wayland. That forces Qt to use the native Wayland backend instead of XCB (X11). When setting QT_QPA_PLATFORM=xcb the issue doesn't appear.

The simplest reproducer I was able to find is just:

Here is the created document which exhibits the bug.

I have no idea why Qt is affecting asm3's performance in this strange way. Other parts of FreeCAD aren't affected at all as far as I can tell. Since it is pretty unlikely that you're using the same environment as me I'd be willing to help debug stuff (with your instructions) on my machine to find the root cause.

Environment information: