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

Game resolution on MacOS is a complete mess #9273

Open
2 tasks done
ihhub opened this issue Nov 16, 2024 · 1 comment
Open
2 tasks done

Game resolution on MacOS is a complete mess #9273

ihhub opened this issue Nov 16, 2024 · 1 comment
Labels
bug Something doesn't work macOS macOS ui UI/GUI related stuff
Milestone

Comments

@ihhub
Copy link
Owner

ihhub commented Nov 16, 2024

Preliminary checks

Platform

macOS

Describe the bug

I compiled the latest version of the engine on macOS Sonoma 14.6 and the resolution selection is obviously does not correspond to the reality. As you can see from the below screenshot 800x600 resolution is not as it should be:
Screenshot 2024-11-16 at 11 02 09 PM

Most of users will immediately try the highest resolution which leads to this:
Screenshot 2024-11-16 at 11 09 07 PM

You could imagine the frustration of players seeing this :)

I am using MacBook Air M3 for tests.

Save file

No need.

Additional info

No response

@ihhub ihhub added bug Something doesn't work ui UI/GUI related stuff macOS macOS labels Nov 16, 2024
@ihhub ihhub added this to the 1.2.0 milestone Nov 16, 2024
@oleg-derevenetz
Copy link
Collaborator

oleg-derevenetz commented Nov 16, 2024

As you can see from the below screenshot 800x600 resolution is not as it should be:

Well, it's as it should be... sort of. On macOS and iOS, there are "physical resolution" and "logical resolution". For instance, iPhone 15 Pro Max has physical screen resolution of 1290x2796, while it's logical screen resolution is just 430x932. So when you are setting the window size, you are setting it in terms of "logical pixels", not "physical pixels", while the list of available resolutions is probably taken from the "physical" display parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something doesn't work macOS macOS ui UI/GUI related stuff
Projects
None yet
Development

No branches or pull requests

2 participants