Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: Pixel perfect UI scaling on 4k monitors - working solution  (Read 7903 times)

Ungern

  • Ensign
  • *
  • Posts: 3
    • View Profile
Pixel perfect UI scaling on 4k monitors - working solution
« 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.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Pixel perfect UI scaling on 4k monitors - working solution
« Reply #1 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.
Logged

Ungern

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: Pixel perfect UI scaling on 4k monitors - working solution
« Reply #2 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
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Pixel perfect UI scaling on 4k monitors - working solution
« Reply #3 on: August 03, 2019, 02:16:29 PM »

Neat! Yeah, that looks really crisp.
Logged

magnanimous

  • Ensign
  • *
  • Posts: 1
    • View Profile
Re: Pixel perfect UI scaling on 4k monitors - working solution
« Reply #4 on: January 14, 2021, 12:41:01 PM »

I think you have to set the game resolution to 1920x1080 to get it to work
« Last Edit: January 14, 2021, 12:54:45 PM by magnanimous »
Logged

Nighteyes

  • Ensign
  • *
  • Posts: 41
    • View Profile
Re: Pixel perfect UI scaling on 4k monitors - working solution
« Reply #5 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?!
Logged

TJJ

  • Admiral
  • *****
  • Posts: 1905
    • View Profile
Re: Pixel perfect UI scaling on 4k monitors - working solution
« Reply #6 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:

Scale2x:


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)
« Last Edit: January 16, 2021, 08:09:41 AM by TJJ »
Logged

sector_terror

  • Commander
  • ***
  • Posts: 195
    • View Profile
Re: Pixel perfect UI scaling on 4k monitors - working solution
« Reply #7 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:

Scale2x:


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.
Logged

ciph

  • Ensign
  • *
  • Posts: 15
    • View Profile
Re: Pixel perfect UI scaling on 4k monitors - working solution
« Reply #8 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
Logged

Wolvaras

  • Ensign
  • *
  • Posts: 6
    • View Profile
Re: Pixel perfect UI scaling on 4k monitors - working solution
« Reply #9 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?
Logged