Vanilla-Conquer icon indicating copy to clipboard operation
Vanilla-Conquer copied to clipboard

Add "sharp-linear" scaling option

Open anpage opened this issue 3 years ago • 4 comments

This adds a special "sharp-linear" option to the Scaler ini setting which uses a render target texture to do an integer scale up to some resolution higher than the viewport before a final linear scale back down. This produces a sharp image that doesn't exhibit weird thick lines in text or other uneven pixels.

It's a little computationally heavy to be scaling up so high, but on machines with plenty of headroom, the boost in image quality is probably worth it.

Nearest

nearest

"sharp-linear"

sharp-linear

anpage avatar Aug 07 '21 01:08 anpage

Does this currently work correctly when toggling fullscreen with the alt-enter? Don't those integer calculations get called only once regardless of being in the fullscreen or windowed initially?

hifi avatar Aug 08 '21 05:08 hifi

Does this currently work correctly when toggling fullscreen with the alt-enter? Don't those integer calculations get called only once regardless of being in the fullscreen or windowed initially?

Good catch. I changed it to re-init the render target texture whenever fullscreen is toggled.

anpage avatar Aug 17 '21 00:08 anpage

Just a note that this will address #512 by the looks of it.

OmniBlade avatar Nov 17 '21 22:11 OmniBlade

I've rebased this (admittedly aging) PR and made the requested changes to string comparisons.

anpage avatar Jul 25 '22 21:07 anpage