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

set SymbolAtlas dpr to primary screen's dpr #2965

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

pijyoi
Copy link
Contributor

@pijyoi pijyoi commented Mar 16, 2024

Set the startup DPR of ScatterPlotItem's SymbolAtlas to the primary screen's DPR, so that users with hidpi screens are not penalized by a guaranteed SymbolAtlas rebuild.

https://doc.qt.io/qt-6/qguiapplication.html#primaryScreen-prop says that:
This will be the screen where QWindows are initially shown, unless otherwise specified.

Fixes #2960
Test script can be found in the comments of the linked issue.

Remarks:

  1. ScatterPlotItem can (surprisingly) be instantiated without a QGuiApplication, in which case there will be no primary screen.

@j9ac9k
Copy link
Member

j9ac9k commented Mar 16, 2024

walrus operator strikes again!

Thanks for the PR @pijyoi LGTM 👍🏻

@j9ac9k j9ac9k merged commit f63774f into pyqtgraph:master Mar 16, 2024
29 checks passed
@pijyoi pijyoi deleted the probe-dpr branch March 16, 2024 11:41
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

Successfully merging this pull request may close these issues.

PyQtGraph 0.1.14 takes approximately twice as long to plot colored points in a ScatterPlotItem that 0.1.13
2 participants