Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Bobo1239 opened this issue Aug 11, 2023 · 0 comments

Comments

@Bobo1239
Copy link

Bobo1239 commented Aug 11, 2023

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:

  • Create a new document
  • Switch to Part workbench; Add a cube
  • Switch to Assembly3 workbench; Create assembly
  • Right click on the cube > Link actions > Make link
  • Move the linked cube into the assembly parts
  • Hide the original cube to not accidentally select it
  • Use assembly3's Move Part on the linked cube and move it around; During movement the update rate gradually gets worse until it is completely unusable (update: actually the performed movement must be somewhat fast/large; if I just slowly move it is able to stay at high FPS; but with XCB I can move it at any speed without problems)

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:

  • Arch Linux; all packages up-to-date
  • freecad Arch package (version 0.21.0; compiled with Qt 5.15.10)
  • Sway window manager (-> Wayland)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant