-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
opensimplexnoise: Fix persistence, tweak documentation URL and layout #791
Conversation
Please look into adding support for multiple resolutions instead. We shouldn't disable hiDPI support as operating systems' lowDPI fallbacks tend to behave badly (on top of looking blurry). |
hi @Calinou, I read the article you linked and indeed it says this:
this is a non-game application, as far as I can tell, since it's only using control nodes. so disabling the flag like I did is following the guide, if I'm not mistaken. further, it states
but also
how does the godot editor support high dpi? how should this be handled if I have a game and I render controls on top of it? |
to be complete, following this guide, we should also set stretch mode to disabled and stretch aspect to ignore. |
You can use the Also, the documentation is outdated as overriding the 2D scale factor is possible since Godot 3.5.
The editor features a custom scale factor system that modifies the theme elements to suit the defined editor scale. This system has been in place since Godot 2.1 and predates the new 2D scale factor override. |
hi @Calinou, screenshot with godot website for size reference: however, with the recommended settings from the guide which are just the defaults, the gui size is correct: am I missing something? |
You need to manually resize the window to make it larger on hiDPI displays, as Godot doesn't do this automatically if you've enabled Allow hiDPI. In comparison, the OS' lowDPI fallback manages this automatically, but it often messes up with fullscreen applications (especially on Windows). Eventually, Godot should be made to automatically change the initial window size depending on the OS' scale factor (when Allow hiDPI is enabled). This is something that should be done at the engine level though. After doing this, we can automatically adjust the base 2D scale factor based on the OS-reported scale factor. The application would effectively look the same as if you disabled Allow hiDPI, except it'd be crisper. Mobile devices don't have a concept of window size (by default), so the app is always made fullscreen there. |
hi @Calinou,
sorry, how is this better than just using the defaults? then no resize would be needed.
isn't this a separate bug and should be fixed within the engine?
hmm this doesn't make sense for me. I, as a user of a gui application, should be able to choose a arbitrary window size, by resizing the window to my liking (of course their might be a minimum size but this doesn't matter here) and the gui elements should always have the same size, no matter how big or small I want to make the window. I'm fine with changing it back to "allow hidpi", also for consistency sake with other demos, but I'm interested in your reasoning, because it seems like we have very different understandings how gui applications should behave. I'm just comparing here with other existing applications like blender or even the godot editor itself. they behave very differently from what you describe as a desired behavior. |
No, this is a Windows bug that's been around ever since it's had a lowDPI fallback. Plenty of AAA games still run into this issue nowadays because their executable doesn't mark the game window as DPI-aware. This can be worked around by the user by explicitly marking it as DPI-aware in the executable's properties, but it's not something most people are aware of. (In my experience, most people aren't even aware that they're using a hiDPI display in the first place.) For reference, in 4.0, Allow hiDPI is enabled by default due to all the issues caused by lowDPI fallbacks on both Windows and macOS. I'd prefer if the demo projects in 3.x aligned with the new defaults in 4.0 to make porting the demos easier. |
independent of the new convention in 4.0, don't you think there is a kind of surprising discrepancy? |
reverted the allow hidpi change and moved the discussion regarding scaling to godotengine/godot#42085. good to merge from my side |
cc @Calinou |
hi @Calinou could you merge this please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally, it works. Thanks!
Please check if some of the updates are relevant for the |
persistence's spinbox step size was set to 1, breaking the default of 0.5.
changed step size to 0.05 because small changes in this value make a big different (only values 0 to ~2 are relevant).
other fixes I did:
disabled high dpi since it doesn't actually properly scale on high dpibefore
after
ps: how is the release on the website handled?