MantisBT - Zandronum
View Issue Details
0002656Zandronum[All Projects] Bugpublic2016-03-03 18:432024-03-01 20:58
Sluge 
Torr Samaho 
normalcrashalways
confirmedbackport later 
Windows10XP/Vista/7
2.1 
 
0002656: Crash on vid_setmode to monitor's native resolution
I have an ultrawide monitor that crashes when calling vid_setmode to the native resolution. vid_listmodes returns the mode.

I am using the latest non-beta Nvidia drivers on windows 10 with a 980GTX Ti.
1. Launch zandronum, bring up console.
2. type vid_setmode 3440 1440
3. Observe crash
I have submitted a 21:9 ultrawide code patch to ZDoom which may be useful in supporting ultra wide screen aspect ratios. It is awaiting approval on their forum as of this report:

'http://forum.zdoom.org/viewtopic.php?f=15&t=51086&p=889448#p889448 [^]'
No tags attached.
zip CrashReport.zip (30,630) 2016-03-03 18:43
/tracker/file_download.php?file_id=1751&type=bug
png Screenshot_Doom_20160303_161939.png (1,002,400) 2016-03-04 00:21
/tracker/file_download.php?file_id=1752&type=bug
txt zdoom_ultrawide_patch.txt (13,585) 2016-03-04 00:24
/tracker/file_download.php?file_id=1753&type=bug
Issue History
2016-03-03 18:43SlugeNew Issue
2016-03-03 18:43SlugeFile Added: CrashReport.zip
2016-03-03 20:51Edward-sanNote Added: 0014539
2016-03-03 20:51Edward-sanStatusnew => feedback
2016-03-03 20:54Edward-sanNote Edited: 0014539bug_revision_view_page.php?bugnote_id=14539#r8805
2016-03-03 21:12SlugeNote Added: 0014540
2016-03-03 21:12SlugeStatusfeedback => new
2016-03-03 23:57Edward-sanNote Added: 0014542
2016-03-03 23:57Edward-sanStatusnew => feedback
2016-03-04 00:21SlugeFile Added: Screenshot_Doom_20160303_161939.png
2016-03-04 00:24SlugeFile Added: zdoom_ultrawide_patch.txt
2016-03-04 00:24SlugeNote Added: 0014543
2016-03-04 00:24SlugeStatusfeedback => new
2016-03-04 00:25SlugeNote Edited: 0014543bug_revision_view_page.php?bugnote_id=14543#r8807
2016-03-04 09:09Edward-sanNote Added: 0014546
2016-03-04 09:09Edward-sanAssigned To => Torr Samaho
2016-03-04 09:09Edward-sanStatusnew => assigned
2016-03-04 14:11Edward-sanNote Edited: 0014546bug_revision_view_page.php?bugnote_id=14546#r8809
2016-11-20 21:51Edward-sanProduct Version2.2-beta => 2.1
2024-03-01 20:58Ru5tK1ngStatusassigned => confirmed
2024-03-01 20:58Ru5tK1ngResolutionopen => backport later

Notes
(0014539)
Edward-san   
2016-03-03 20:51   
(edited on: 2016-03-03 20:54)
Do you mind checking if this crashes in GZDoom r900 andGZDoom 1.8.6, too?

(0014540)
Sluge   
2016-03-03 21:12   
Interestingly, it crashes in GZDoom r900, but the mode succeds in GZDoom 1.8.6.

In GZDoom 1.8.6, the aspect ratio is wildly incorrect and no vid_aspect cvar setting helps much. The attached patch in the zdoom forum fixes that issue.
(0014542)
Edward-san   
2016-03-03 23:57   
Ok, then what about zandronum 3.0 beta? Latest is here.
(0014543)
Sluge   
2016-03-04 00:24   
(edited on: 2016-03-04 00:25)
That works, though it falls back to software. I'm not sure how to use vid_setmode to force hardware?

At any rate, the aspect ratio is... very bad. The attached screenshot shows what you get.

I attached a code patch that adds explicit support for 21:9 monitors, including in the UI. It was originally written for the most recent ZDoom (origin/master in their repo as of yesterday).

(0014546)
Edward-san   
2016-03-04 09:09   
(edited on: 2016-03-04 14:11)
ZDoom added your patches in these commits:
[1]
[2]
[3]
[4]
[5]
[6]

with some adjustments from randi:
[7]
[8]
[9]

So, you have to wait for Torr to pull these changes.

[edit] not to forget graf's adjustment for gzdoom: [here]