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

More window improvements #563

Merged
merged 3 commits into from
Jan 7, 2025
Merged

Conversation

Pedro-Beirao
Copy link
Collaborator

  • Allow < 640x480 windows Window scaling not accurate in software mode #531
  • Add low res aspect ratio correction on OpenGL
    On software 200p and 400p, the image is stretched to match 240p and 480p. This makes OpenGL follow it
    I meantioned before that I thought this behaviour should be removed instead, but Ive changed my opinions as I explored the issue more
  • Allow setting desired_fullscreen in the menu, even if -window or -fullscreen
    If you had one of these params on, the desired_fullscreen menu option would not work
    Unlike these other params, -geom already allowed the menu option to work
    This is useful for the launcher, as it uses these params on every launch

- Matches software
- Affects 200p and 400p
…lscreen

- If you had one of these params on, the desired_fullscreen menu option would not work
- Unlike these other params, -geom already allowed the menu option to work
@rfomin
Copy link
Collaborator

rfomin commented Dec 23, 2024

What is the difference between 400p and 480p modes? 480p is stretched in the engine, but 400p is stretched by SDL?

@fabiangreffrath
Copy link
Collaborator

In my understanding, in 480p the vertical field of view is rendered to 480 pixels which are then transferred 1:1 to screen, whereas in 400p the vertical field of view is rendered to 400 pixels which are then stretched by factor 1.2:1 on their way to screen.

@rfomin
Copy link
Collaborator

rfomin commented Dec 23, 2024

Why do we need both 480p and 400p modes? They look very similar. I think we should pick the ones that look better and cut the rest.

@Pedro-Beirao
Copy link
Collaborator Author

This clearly shows that 200p is the correct resolution, but it should be rendered in a 240p window, due to https://doomwiki.org/wiki/Aspect_ratio

On 240p, some UI elements get screwed like this (only on software)
Screenshot 2024-12-23 at 18 50 44

On stretched 200p they look fine
Screenshot 2024-12-23 at 18 55 04

Copy link
Collaborator

@fabiangreffrath fabiangreffrath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@Pedro-Beirao Pedro-Beirao merged commit 85746d2 into kraflab:master Jan 7, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

3 participants