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

Wide screen is forced on higher resolutions on macOS #241

Closed
Perlence opened this issue Sep 9, 2023 · 2 comments
Closed

Wide screen is forced on higher resolutions on macOS #241

Perlence opened this issue Sep 9, 2023 · 2 comments

Comments

@Perlence
Copy link
Contributor

Perlence commented Sep 9, 2023

Hello everyone! First of all, thanks for all the work you put into optimizing the renderer! It's the only port I know of that makes Quake III Arena and Urban Terror playable at 125 FPS on a MacBook Air M1.

I'm using the OpenGL renderer and I want to set a 4:3 resolution on the 16:10 screen. Setting r_mode 6 (1024x768) works, the resulting image is 4:3, see Picture 1. However, setting r_mode 7 (1152x864) and higher forces the game to fill the whole screen, see Picture 2. I've also tried setting custom 4:3 resolutions, but they were also forced to be wide.

Picture 1
Picture 2

The related settings:

seta r_customPixelAspect "1"
seta r_customheight "1600"
seta r_customwidth "2133"
seta r_mode "-1"
seta r_modeFullscreen ""
seta r_fullscreen "1"

I'm not sure if the Vulkan renderer has this problem because I couldn't get it to work, see #183.

@ec-
Copy link
Owner

ec- commented Sep 9, 2023

Modern drivers doesn't like custom resolutions so much. So if you want to keep black bars at sides (preserve aspect ratio - is that your point?) - then:

  • always use native resolution in full-screen mode (r_modeFullscreen "-2")
  • set r_fbo 1 - it will enable framebuffer post-processing
  • set corresponding r_renderScale mode (see in-game description for this cvar)
  • set any custom r_renderWidth / r_renderHeight you want
  • issue \vid_restart

@Perlence
Copy link
Contributor Author

Perlence commented Sep 9, 2023

Awesome, thanks, this is what I was looking for! I ended up with the following settings:

seta r_mode "6"
seta r_modeFullscreen "-1"
seta r_customWidth "2560"
seta r_customHeight "1600"
seta r_fbo "1"
seta r_renderWidth "2133"
seta r_renderHeight "1600"
seta r_renderScale "4"

I use r_modeFullscreen "-1" because with "-2" quake3e thinks the native resolution is 1280x800, but it's actually twice that.

@Perlence Perlence closed this as completed Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants