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

Nearest Neighbor/Integer screen scaling #1759

Open
EpicGamerNaeNae opened this issue Nov 28, 2024 · 2 comments
Open

Nearest Neighbor/Integer screen scaling #1759

EpicGamerNaeNae opened this issue Nov 28, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@EpicGamerNaeNae
Copy link

EpicGamerNaeNae commented Nov 28, 2024

Is your feature request related to a problem? Please describe.
By default, when playing at internal resolutions smaller than the window/screen, Flycast uses linear filtering to scale the image up, which results in a blurry image.

This behavior can be changed, by changing the texture filtering option from default or linear to nearest-neighbor, but displays the textures differently than was intended.

Describe the solution you'd like
There should be an option for screen scaling, separate from the texture scaling option, to allow to choose between bilinear filtering, nearest neighbor, or integer scaling (displaying the game only at exact multiples of the original resolution).
The sharper output would also help when using external filtering methods.

Describe alternatives you've considered
External software like lossless scaling can be used to achieve nearest neighbor/integer scaling, but it is a bit finicky (at 1440p you need to set it to 2.999x scaling (854x480) to look as acceptable (because of that it stretches one pixel column slightly), since 3x (853x480) is one pixel off and makes the image look terrible), and isn't accessible to all users.

Additional context
Screenshots at 1440p, with internal resolution at 1x:

Default texture filtering, textures look the way they're supposed to, but the image is blurry:
image

Nearest Neighbor texture filtering, textures look worse, but the image is sharper:
image

Default texture filtering, with lossless scaling resizing the window to 854x480 (scale factor 2.999 on a 1440p display, scaled up to 1440 using nearest neighbor on paint.net). Intended look for the textures, with a sharp image:
image

@EpicGamerNaeNae EpicGamerNaeNae added the enhancement New feature or request label Nov 28, 2024
@flyinghead
Copy link
Owner

Duplicate of #1415

@flyinghead flyinghead marked this as a duplicate of #1415 Nov 30, 2024
@flyinghead flyinghead added the duplicate This issue or pull request already exists label Nov 30, 2024
@SpelzR2
Copy link

SpelzR2 commented Dec 19, 2024

It isn't a duplicate of #1415 as texture filtering isn't the same as screen scaling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants