Fractal Softworks Forum

Starsector => General Discussion => Topic started by: Ungern on August 03, 2019, 05:08:57 AM

Title: Pixel perfect UI scaling on 4k monitors - working solution
Post by: Ungern on August 03, 2019, 05:08:57 AM
Use this: http://tanalin.com/en/projects/integer-scaler/

Run the game in your 4K resolution/2 (for example in 1920x1080) windowed mode, and with IntegerScaler enabled use the Alt+F11 shortcut.

There - fullscreen, pixel-perfect, blur-free Starsector on 4k monitor.
Title: Re: Pixel perfect UI scaling on 4k monitors - working solution
Post by: Alex on August 03, 2019, 10:49:12 AM
Oh, that's really cool! Makes me wish I had a 4k monitor handy so I could see what that looks like.
Title: Re: Pixel perfect UI scaling on 4k monitors - working solution
Post by: Ungern on August 03, 2019, 01:27:28 PM
Here's an example - as you can see no blurriness, just every pixel changed to four. I'm perfectly happy with it:

https://imgur.com/a/Y77sius (https://imgur.com/a/Y77sius)
Title: Re: Pixel perfect UI scaling on 4k monitors - working solution
Post by: Alex on August 03, 2019, 02:16:29 PM
Neat! Yeah, that looks really crisp.
Title: Re: Pixel perfect UI scaling on 4k monitors - working solution
Post by: magnanimous on January 14, 2021, 12:41:01 PM
I think you have to set the game resolution to 1920x1080 to get it to work
Title: Re: Pixel perfect UI scaling on 4k monitors - working solution
Post by: Nighteyes on January 16, 2021, 02:40:20 AM
Works for me but as mentioned, you must play in 1920x1080.

Also, since it's not actually running the game in 4k, it does have a bit of a blurriness feel to it. A true 4k (or even 1440p) solution would be preferred but I get that it just won't ever happen.

However, running this in 4k @ 120 hz is nice :-)

RTX when?!
Title: Re: Pixel perfect UI scaling on 4k monitors - working solution
Post by: TJJ on January 16, 2021, 08:00:41 AM
Surprised nobody has implemented the Scale2x algorithm.

https://www.scale2x.it/algorithm

It's super simple, fast, and works quite nicely with pixel art as it maintains crisp edges without requiring an integer scaling factor.

Integer:
(https://www.scale2x.it/snap/pbobbl2n-1s.png)
Scale2x:
(https://www.scale2x.it/snap/pbobbl2n-2s.png)

I used it years ago when porting J2ME games to handsets with radically larger screen sizes (where it was cost prohibitive to redo the art assets)
Title: Re: Pixel perfect UI scaling on 4k monitors - working solution
Post by: sector_terror on January 18, 2021, 06:28:25 AM
Surprised nobody has implemented the Scale2x algorithm.

https://www.scale2x.it/algorithm

It's super simple, fast, and works quite nicely with pixel art as it maintains crisp edges without requiring an integer scaling factor.

Integer:
(https://www.scale2x.it/snap/pbobbl2n-1s.png)
Scale2x:
(https://www.scale2x.it/snap/pbobbl2n-2s.png)

I used it years ago when porting J2ME games to handsets with radically larger screen sizes (where it was cost prohibitive to redo the art assets)

Wow, that looks incredible. amazing how graphics editing can work so well.
Title: Re: Pixel perfect UI scaling on 4k monitors - working solution
Post by: ciph on January 24, 2022, 06:51:29 AM
guys, what UI scaling and antialias setup you use with this?   100% scaling I got bad font display effect
Title: Re: Pixel perfect UI scaling on 4k monitors - working solution
Post by: Wolvaras on January 25, 2022, 09:35:07 AM
Having a 2K/QHD monitor (and not wanting to disable GraphicsLib effects), I fall right in-between the dilemma between having proper UI size or a proper clear image.
Would this be a solution to the dilemma? Is there even a solution possible?