-
Notifications
You must be signed in to change notification settings - Fork 412
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
HiDPI + windows #1225
Comments
Yeah... unfortunately pyfa is one of those apps that don't play nicely with scaling. This is a limitation of the underlying toolkit, I believe. There's quite a few apps that still look funky when changing the scaling for the desktop (PyCharm, for example, which is the IDE pyfa is developed with, has blurriness), and pyfa is one of them. There may be a few things that can be done, but a quick Google search returns limited information. Further research into this is required. :) |
Unfortunately wxPython was never designed with DPI scaling in mind. DPI scaling just increases the ratio for the app, so if your app is setup so that it has the best resolution at a 1:1 ratio, then it'll look terrible at a 1:2 ratio. Modern apps will use extremely high resolution fonts and images even at low resolutions, so you can scale it without losing any quality. Not much to be done there, since we don't control the font or images. If your issue is the same as Bart in #1183 then might be able to work around the DPI issue...... |
I don't think that's an accurate nor true description. The fonts, for example, are rendered to the required size. A GUI framework that is DPI-aware will just know that the required size is x1.75 for 175% scaling, it will render a properly sized bitmap that can be mapped to the screen pixel-perfect. A framework that's non-DPI-aware will render at x1 and then the OS will scale up this bitmap, producing blurriness. Also, wxWidgets, and, by proxy, wxPython do seem to support HiDPI, even though not perfectly yet. |
wxWidgets (supposedly) has better support for hidpi in windows in 3.1. Unfortunaltey, wxPython is built with 3.0. I've been pushing Robin here and there in getting a 3.1 version built so that we can try it out. HiDPI is already available in OS x and linux builds, but linux support iirc is still iffy. |
@blitzmann: I see, didn't catch that bit, sorry for nagging, then. And thanks for paying attention to this issue. The program is perfectly usable, of course, but smaller text does get hard to read due to not being as crisp as it's supposed to be. |
No worries at all! It's a question that pops up every now and then, and it's something > definitely want to get fixed at some point once wxPython gets updated |
Some extra info is in #1957 which i closed |
Looks like wxpython 4.1.x/4.2.x may fix this: Not just for windows, for linux too (it has lowres bitmaps, the rest looks alright already): wxWidgets/Phoenix#1327 |
I wanted to chime in to say that pyfa is barely usable on Linux on my 4k panels. I've resorted to running the (blurry) windows version in a Windows VM for the time being. It doesn't seem to care what my Xorg DPI is set to. |
I am using pyfa on my Debian + Gnome + Xorg on 3840x2160 17" display. In display settings I have 200% scaling set, pyfa is properly scaled up. (200% because xorg doesn't support non-integer scaling, and for Gnome via Wayland non-integer scaling has been added as an experimental feature only in the latest release.) That said, as mentioned in wxWidgets/Phoenix#1327, full hiDPI support in not in wxpython 4.0.6 yet, and even in 4.1.0 it will be WIP. Please create separate issue, mentioning screen resolution, distribution you are using, display server (xorg or wayland), dpi/scaling factor, as well as wxpython version. |
Actually, the fact that it works for you in Gnome made me dig a little into what Gnome does under the hood. Setting server DPI doesn't work, but setting For reference, I'm now running pyfa with |
FYI i tried recently released wxpython 4.0.7 under windows - created However, it turns out that |
4.1.0 was released yesterday. |
I started some work in |
Bug Report
Pyfa looks blurry when scaled up by the OS (on Windows). Especially visible on high DPI displays.
Pyfa looks like this when upscaled : image
Detailed steps to reproduce:
In the Windows control panel, go to "Display", and increase the value of the "Change the size of text, apps..." slider. Open Pyfa.
Disabling high DPI scaling by right clicking the executable -> compatibility -> checking "disable display scaling on high DPI settings" solves the issue at the cost of, well, upscaling.
Release or development git branch? Please note the release version or commit hash:
Release branch : commit #461f521
Operating system and version (eg: Windows 10, OS X 10.9, OS X 10.11, Ubuntu 16.10):
Windows 10
The text was updated successfully, but these errors were encountered: