Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Pixel perfect UI scaling on 4k monitors - working solution  (Read 5015 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: 17507
    • 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: 17507
    • 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: 35
    • View Profile
    • Email
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: 1878
    • View Profile
    • Email
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

  • Lieutenant
  • **
  • Posts: 81
    • 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