-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Wayland: Auto UI scale is rounded up when using fractional scaling #89257
Comments
Fractional scale is actually implemented (you'd otherwise see at least some blur), what's missing is a good way to detect Godot's UI scale. It's a bit complicated to explain: on Godot, the UI scale can not be changed at runtime, so it just queries the screen scale at startup, which on Wayland is always an integer (as the fractional scale is a window extension). In practical terms, these are the solutions that come to mind, in order of "correctness":
One of those solutions will be implemented by the release, I just haven't got around to do that yet. I'd push for the second if the first doesn't get resolved in time. In the meantime, a work-around is to set the editor's scale manually ( Also, note that multi-display fractional scale is effectively broken AFAIK until runtime UI scale changing (the first fix) is implemented. This is consistent with every other platform unfortunately. Don't hesitate to ask further info, HTH :D |
Heads up, I've renamed the issue to be more clear, please tell me if that's not what you're experiencing. |
All right, I have implemented a partial solution: #89574. If you have a single screen, or if the one the editor is run on, it will select that scale. Otherwise, it will fallback to the biggest size it can probe (which will be still rounded up). Note that fractional multi-head is impossible (the UI will "resize" between screens instead of staying nice and consistent) without the deep and complex changes done by #86022, as that's an actual engine-wide limitation. Edit: to be clear, this is the third solution, as it's the least invasive kind. The fact that there's already a |
Thanks! Tested it, this works OK for now as a workaround. |
Tested versions
v4.3.dev4.official.df78c0636
System information
Fedora 39, Radeon 780M, GNOME Wayland
Issue description
Godot does not follow the system display scale, which can result in it being way too big or way too small on some screens.
Display Scaling setting in Godot seems to only be able to automatically set itself to integer scales and it seems to be global, as in, it does not adjust the scale according to different displays in multi-monitor setups.
Steps to reproduce
--display-driver wayland
in a Wayland sessionMinimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: