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

SDL2 | Use best scaling method depending on resolution #47

Closed
midwan opened this issue Feb 2, 2017 · 0 comments
Closed

SDL2 | Use best scaling method depending on resolution #47

midwan opened this issue Feb 2, 2017 · 0 comments
Assignees
Projects

Comments

@midwan
Copy link
Collaborator

midwan commented Feb 2, 2017

If it's possible to scale up the resolution as an exact multiple (emulator vs native resolutions), we should use nearest neighbor which provides a sharp picture.
In other cases "linear" should be used to avoid an ugly distorted image.

Example:

  • PAL modes scale up to 1280x1024 exactly (320x256, 640x512, 1280x1024 are exactly multiples) and if the native resolution of the monitor is such, we can easily use "nearest neighbor" scaling without problems.

  • Picasso96 modes such as 800x480 on a 1080p native resolution, should not use "nearest neighbor" as it would give an ugly result - instead, "linear" scaling works best in those conditions.

Suggestion:
Implement an mechanism to calculate requested vs native resolution and switch scaling method automatically, in order to provide the best image output.

@midwan midwan self-assigned this Feb 2, 2017
midwan added a commit that referenced this issue Feb 2, 2017
- All Picasso modes and the menu use linear scaling, all other modes
(PAL/NTSC) use nearest neighbor. #47
- Code cleanup
midwan referenced this issue Feb 23, 2017
not needed with SDL2, as we'll be centering the image automatically
always
midwan referenced this issue Feb 23, 2017
Different handling if screen is Picasso or not
@midwan midwan closed this as completed Feb 23, 2017
@midwan midwan added this to Done in SDL2 Mar 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
SDL2
Done
Development

No branches or pull requests

1 participant