[feature request] widescreen res aspect ratio handling

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
User avatar
Chris
Posts: 2978
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Post by Chris »

Hmm.. but since 1280x1024 *is* 5:4, why not just enable it whenever that specific mode is used? 1280/1024 = 1.25, so I don't think there'd be precision issues:

Code: Select all

if(w/h == 1.25)
  use_54_aspect()
Or if 5:4 can be used on other modes, add it to the aspect ratio list, and don't special case it.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Because most screens squash 1280x1024 to fit a 4:3 aspect ratio, so treating it as 5:4 is generally wrong.
User avatar
Chris
Posts: 2978
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Post by Chris »

Personally, I think it's dumb to use a non-4:3 mode on a 4:3 monitor (even 320x200, although being the max VGA resolution, you don't have much choice), however, in the case of most 3D games, I suppose it shouldn't matter as long as things are scaled reasonably when rendering (you'd just get that much more detail).

Why not add 5:4 to the list of aspect ratios? Using a 5:4 mode with a 5:4 aspect (with that ratio set) would have the same scaling as a 16:10 mode on a 16:10 monitor.
User avatar
arioch
Posts: 129
Joined: Tue Jul 15, 2003 3:27 pm
Contact:

Post by arioch »

[quote="Chris"][/quote]
It's a moot point here because Doom's resolution is 320x200 but the end result is designed for 4:3 monitors.

The 1280x1024 is an alternating special case, you can't arbitrarily pick an aspect ratio here to plop it down in.
User avatar
Chris
Posts: 2978
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Post by Chris »

Okay.. the thing I see is that Randy added support for 16:9 and 16:10 modes and monitors (via the Aspect Ratio option in the screen shot). Why can he not add 5:4 as well? Why special case just that one resolution?

Selecting, say, 1280x720 (16:9) would have different scaling on a 4:3 monitor than a 16:9 one (this is the purpose of the aspect ratio option, isn't it? to account for these difference?). Why can the same not be applied to 1280x1024 (5:4) so it'll have different scaling on a 4:3 monitor as opposed to a 5:4?
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Chris wrote:Why not add 5:4 to the list of aspect ratios?
It is on the list. If you enable it. That's what the TFT option is for. If you don't enable it, then they show up on the list of 4:3 resolutions. Otherwise, they show up as 5:4.
User avatar
Chris
Posts: 2978
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Post by Chris »

Ohh, ok, I see. ZDoom can handle aspect ratio differences though, can't it? If so, why filter the resolutions at all? If not, then just special case the mode so it's listed for both aspect ratios..
User avatar
MartinHowe
Posts: 2080
Joined: Mon Aug 11, 2003 1:50 pm
Preferred Pronouns: He/Him
Location: East Suffolk (UK)

Post by MartinHowe »

randy wrote:The TFT option is for Martin Howe. All it does is enable 5:4 aspects, so 1280x1024 is drawn as 5:4 instead of 4:3. Any suggestion for a better name?
Hah! Thanks, Randy :)

Seriously though, many many desktop PCs are supplied with TFT screens these days, as well as laptops. Most are 1024x768 right now, but 1280x1024 is increasingly common and laptops are coming with even weirder numbers.

If I understand your new setting correctly, it tells ZDoom that the physical dimensions of the display device are in the same aspect ratio as its pixel array and therefore, when in full-screen mode it must use all of the display by using a larger framebuffer instead of stretching the framebuffer that already exists. Is this correct? Whatever it means, how is TITLEPIC handled?
User avatar
Chilvence
Posts: 1647
Joined: Mon Aug 11, 2003 6:36 pm
Contact:

Post by Chilvence »

Ahem - two special cases. I think the option should be changed from "Monitor is a TFT Display" to "Press this if you are MartinHowe or Chilvence"

But failing that, why not just add a 5:4 option in the aspect ratio box, that stretches the screen but has the same modes as 4:3.

edit: doh, there was another page
User avatar
arioch
Posts: 129
Joined: Tue Jul 15, 2003 3:27 pm
Contact:

Post by arioch »

Any chance of this in a, say, 95.cab anytime soon? :D :D
User avatar
Kirby
Posts: 2697
Joined: Thu Aug 26, 2004 1:23 pm

Post by Kirby »

He is NOT gonna give you a date because he probably doesnt know yet, and it doesn't help to ask.

Always better to wait :D
Post Reply

Return to “General”