OSX Vulkan did not use retina fullscreen solution
On macOS Retina displays, the Vulkan renderer does not use the native drawable resolution in fullscreen mode.
Example:
- MacBook Pro M4 Max Retina display
r_customwidth 3456r_customheight 2234r_mode -1
The log shows:
...setting mode -1: 3456 2234
but afterwards:
MODE: -1, 1728 x 1084 fullscreen hz:120
The same configuration works correctly in windowed mode:
MODE: -1, 3456 x 2234 windowed
This suggests that the Vulkan fullscreen path uses the logical window size instead of the actual Retina drawable size.
Expected behavior:
Fullscreen Vulkan should use the native pixel resolution (e.g. SDL_Vulkan_GetDrawableSize() / pixel size API) similar to the OpenGL renderer.
Tested with r_mode 2 and r_modeFullscreen -1: Quake3e selects the correct mode (setting mode 2: 3456 2234), but the final fullscreen framebuffer is still reported as MODE: -1, 1728 x 1084. Windowed Vulkan correctly uses 3456×2234.
Environment:
- macOS
- Apple Silicon (M4 Max)
- Vulkan renderer build (
quake3e-vulkan.aarch64) - SDL-based fullscreen handling
and after checking: I think the same problem exists, when using the OpenGL renderer
R_mode is not used for full screen windows by default unless you've changed r_modeFullscreen to blank.
It uses desktop full size. So either the flag for high dpi is missing or something else is wrong.
https://github.com/ec-/Quake3e/blob/main/code%2Fsdl%2Fsdl_glimp.c#L525-L529 shows that that function is used correctly
Thanks for the explanation. I checked r_modeFullscreen and confirmed it is set to -1.
The interesting behavior is:
- Windowed mode: MODE: -1, 3456 x 2234 windowed
- Fullscreen mode: MODE: -1, 1728 x 1084 fullscreen hz:120
So the requested mode is correct, but fullscreen seems to use the macOS logical Retina size instead of the drawable pixel size.
This looks like the SDL high DPI flag (SDL_WINDOW_ALLOW_HIGHDPI) might be missing or not applied for the fullscreen window on macOS.
You can try adding SDL_WINDOW_ALLOW_HIGHDPI here:
https://github.com/ec-/Quake3e/blob/main/code%2Fsdl%2Fsdl_glimp.c#L285
I do not have mac systems around to test a solution
Thank you for your Suggestion! But i am Not familier with coding. Maybe you can ad this to your Next Release? And I will Check it if this fix the issue.