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

Fixed slow qgraphics on Linux. #396

Open
xraybrian opened this issue Nov 30, 2023 · 1 comment
Open

Fixed slow qgraphics on Linux. #396

xraybrian opened this issue Nov 30, 2023 · 1 comment

Comments

@xraybrian
Copy link

This is less a bug report, but a suggested addition.

My code, based on nodegraphqt works great under windows, but the graphics were sluggish under Linux.

I was able to fix this issue by adding:

self._viewer.setViewportUpdateMode(QGraphicsView.BoundingRectViewportUpdate)

to the NodeGraph class init method.

I think there is perhaps a bug or issue on some systems regarding deciding on what to update.

Anyhow, this solved the issue entirely.

@xraybrian
Copy link
Author

Just an update, although this fixes the slow graphics updating under Linux, it introduces some funny behavior when re-sizing backdrops. Only the corner being dragged gets updated until the backdrop is manually moved, or a zoom/pan is initiated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants