Allow non-integer values in scaling options

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
Player701
 
 
Posts: 1640
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Allow non-integer values in scaling options

Post by Player701 »

Currently, in "Options -> HUD options -> Scaling options", it is only possible to set the scale sliders to integer values. It is not possible to set a value like 1.5, even via the console or by editing the INI file. On my new laptop with a 15.6 inch full HD screen, the default (unscaled) HUD feels too small, but if I set the scale to 2 (the next possible value after 1), it feels too big instead. It would be great if I could set it to something like 1.5 or 1.25.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Allow non-integer values in scaling options

Post by Graf Zahl »

These are pixel scaling factors. With values like 1.25 or 1.5 you'd get something very, very ugly if you did not use texture filtering to even out the differently sized texels.
User avatar
Player701
 
 
Posts: 1640
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Allow non-integer values in scaling options

Post by Player701 »

Ouch. Didn't know that. Well, I actually do use texture filtering, but I guess there are people who don't, so it might not be possible to cater to everyone. Well, I definitely can live with 2x scaled HUD if that is the case.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Allow non-integer values in scaling options

Post by Graf Zahl »

Technically such values are no problem to implement. I just wanted to point out the caveat they might imply.
User avatar
Player701
 
 
Posts: 1640
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Allow non-integer values in scaling options

Post by Player701 »

Well, maybe then some kind of warning should be issued if such values are used when texture filtering is not enabled. Or maybe they should not be allowed at all in the latter case. I'm no usability expert so I'm not sure what is best.
User avatar
Rachael
Posts: 13575
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Allow non-integer values in scaling options

Post by Rachael »

What you can do is neighbor upscaling and then linear downscaling. That won't look too bad, but the non-HW2D backend won't support that.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Allow non-integer values in scaling options

Post by Graf Zahl »

I'm strictly against adding more cruft to handle edge cases.
Post Reply

Return to “Feature Suggestions [GZDoom]”