How do I force GZDoom to start on display #2

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
marco75
Posts: 6
Joined: Thu Jul 05, 2007 21:17

How do I force GZDoom to start on display #2

Post by marco75 »

I have a dual screen setup, a ViewSonic in the center and an ASUS on the left.
The ViewSonic is "true" primary, i.e. it displays primary BIOS/boot screens.

In the NVIDIA Control Panel > Display > Set up multiple displays >
1. nView mode : Dualview
2. ASUS + ViewSonic
3. Viewsonic set to primary.

All fullscreen apps & games open on the ViewSonic, as expected. GZDoom did too, until recently, when I updated my video drivers from 2009 to latest. Since the update GZDoom runs on DISPLAY #1, no matter what order the plugs are in the card. The only way to get GZDoom to run on the ViewSonic is to switch it to Single mode, which I find annoying.

I have tried deleting the .ini, makes no difference.

Is there a command line switch or variable I can set in zdoom-<name>.ini to force GZDoom to use a particular display?

GPU: NVIDIA 9600 GT
GZDoom: 1.5.6
Skulltag .98D doesn't have this problem, but certain mods only work on GZDoom, and I prefer GZDoom for single player.

Thanks for reading!
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: How do I force GZDoom to start on display #2

Post by Gez »

Try the console command "vid_listadapters" to know what monitors (G)ZDoom detects, and the console variable vid_adapter to select which one you want.

Since I don't have multiple monitors myself I can't help you more than that.
marco75
Posts: 6
Joined: Thu Jul 05, 2007 21:17

Re: How do I force GZDoom to start on display #2

Post by marco75 »

Thanks for this information, Gez, that fixed my problem!

At the console:
vid_listadapters
1. [1680 x 1050 @ (-1680,0)]
2. [1680 x 1050 @ (0,0)] (PRIMARY)

The console variable vid_adapter just has to be changed to "2" (at the console or in the .ini)
This affects only GZDoom 1.5.6 and the SVN r1198.
Versions 1.1.0 and 1.4.0 behave differently. Is this worth reporting to the devs?
(Dualscreen setups are kind of an edge case)

Is there a list of console variables for GZDoom or ZDoom? (some CVARs would be unique to GZDoom)

If there is a wiki, can I contribute this smidgen of info to it?

Thanks again! (I already went and created Hotkeys to switch my displays, but this is much more elegant)
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: How do I force GZDoom to start on display #2

Post by Gez »

The multi-adapter code is a relatively recent addition (worked upon from r836 to r880), a contribution from Tom Seddon, so it's normal it doesn't work on older versions (1.4.0 is r697 for instance).

The wiki is there by the way.
Locked

Return to “GZDoom”