EmptyEpsilon icon indicating copy to clipboard operation
EmptyEpsilon copied to clipboard

[Bug] Resolution halfed on OSX

Open Ownezx opened this issue 7 months ago • 3 comments

Problem,

Running Sonoma 14.5 (23F79), when going full screen the resolution is halfed and leads to bigger pixels than necessary. Using preview, I compared EE lines with the one from a line drawn from preview.

see attached pictures:

Image

Image

Note: I know that the game does not support OSX, but I still wanted to track the issue as I'm developping on it and might fix it later.

Ownezx avatar Jun 08 '25 02:06 Ownezx

I can reproduce this on an M1 Mac Mini connected to a 4k display, but it's macOS display scaling.

With this macOS display scaling setting, where it simulates a 2560x1440 display:

Image

each EE "pixel" is doubled (the selection is 1x1):

Image

When I change the macOS display scaling setting to "more space", it uses the display's native 3840 x2160 resolution:

Image

and each EE "pixel" is a single pixel (the selection is 1x1):

Image

oznogon avatar Jun 08 '25 18:06 oznogon

Full-screen screenshots with the display scaled to "larger text" (1504x846 virtual resolution, 3x pixels)

Image

scaled to the middle setting (2560x1440 virtual resolution, 2x pixels)

Image

and set to "more space" (native 3840x2160, 1x pixels)

Image

Note how the rendered text is also blurrier at the lower virtual resolutions; the text is being rendered at the default size, shrunk to the virtual resolution, then scaled up to the display resolution, further distorting it.

oznogon avatar Jun 08 '25 18:06 oznogon

True high-DPI display support (including detecting macOS display scale) is an SDL 3.0 concern: https://github.com/libsdl-org/SDL/blob/main/docs/README-highdpi.md, libsdl-org/SDL#7134

oznogon avatar Jun 08 '25 19:06 oznogon