GZDoom runs on wrong monitor

Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!

If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.

We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: GZDoom runs on wrong monitor

Re: GZDoom runs on wrong monitor

by Graf Zahl » Fri Jul 31, 2020 2:59 pm

GZDoom cannot use the D3D interface to query the monitor. It's some fuckup on Microsoft's behalf with OpenGL. Of course there are workarounds, but to check them you first got to have a system that's affected.

Re: GZDoom runs on wrong monitor

by Enjay » Fri Jul 31, 2020 2:47 pm

I wonder what it is about the monitor situation that causes this? My set up is that monitor number 2 is the primary monitor. I have tried to make monitor 1 the primary but it simply doesn't work properly with my setup.

However, because monitor to is designated as primary, Windows does seem to be able to communicate that information to most games (old and new), and they open on monitor number 2 without me having to do anything special. In fact, I think GZDoom is the only one that I regularly use that requires me to tell it to use monitor 2. So, does GZDoom not have a way of interrogating which monitor is set to primary in Windows and then use that by default?

Re: GZDoom runs on wrong monitor

by Redneckerz » Fri Jul 31, 2020 2:25 pm

Hamilton Chablingspear wrote:Not gonna lie this REALLY should be fixed if you want to call GZDoom a modern source port. When I change it in the console it even lists the proper monitor as my main monitor why doesn't it default to that? I checked Crispy Doom, Chocolate Doom, Odamex, and PRBoom+ none of those ports do this.
It seems a bit much to call this specific feature detrimental in calling GZ a modern source port.

Going with what Rachael says, its apparently not an easy pickle to implement. I do wonder if GZDoom at the moment is able to atleast detect the presence of more than one monitor?

Re: GZDoom runs on wrong monitor

by Guest » Fri Jul 31, 2020 2:16 am

Not gonna lie this REALLY should be fixed if you want to call GZDoom a modern source port. When I change it in the console it even lists the proper monitor as my main monitor why doesn't it default to that? I checked Crispy Doom, Chocolate Doom, Odamex, and PRBoom+ none of those ports do this.

Re: GZDoom runs on wrong monitor

by Marscaleb » Sun Jan 12, 2020 11:11 pm

Of course it isn't. It would be an item on the list that would have to dynamically change for each computer the game runs on. The information may technically be in the game already, but in order to appear in the menu you'd need a menu that is capable of handling dynamic entries. So if someone has only one monitor there will only be one option in the list, but if they have four there will be four in the list. And in order to be able to change what options are listed in the menu at run-time you'd need special code designed to do exactly that. And if nowhere else in the game's menus is such code needed, it's a pretty tall order to completely change the menu systems for one feature that almost no one needs.
So yeah, I get it.

Sorry if I'm sounding wanty or arrogant or something here; I've been sick this weekend and my mind isn't exactly running optimally here.

Re: GZDoom runs on wrong monitor

by Rachael » Sun Jan 12, 2020 10:25 pm

The thing is, it can't be put in the menu reliably as you might think. It would be a bit of a project to get it in there and it's not a simple 2-line change to make that happen.

Re: GZDoom runs on wrong monitor

by Marscaleb » Sun Jan 12, 2020 9:09 pm

Graf Zahl wrote:Can't do much against OS side problems...
No, I suppose not.
That being said, since I've never come across another program that behaves this way, I don't quite think it's an OS problem. I know this is above my programming ability, but it looks like it is trying to launch on that monitor before it checks what monitor it actually wants to run on. Some obscure setting that can be set within visual studio? I don't know.

Though I will still say, personally I think selecting monitors should be an option within the video settings menu. I guess that's just my opinion though. Since its not a feature inside any other PC game ever, evidently I'm the only one who wants this.

Re: GZDoom runs on wrong monitor

by Graf Zahl » Sun Jan 12, 2020 12:49 pm

Can't do much against OS side problems...

Re: GZDoom runs on wrong monitor

by Marscaleb » Sun Jan 12, 2020 12:34 pm

Hmm, well that does technically fix the issue. But there's still a weird bug where it tries to run the game on the other monitor first, resulting in that screen having this odd glitch until something clears the screen:


I guess it isn't major, but it is annoying.

Re: GZDoom runs on wrong monitor

by wildweasel » Sun Jan 12, 2020 11:53 am

While there is no menu option for it, this functionality is available at the console.

Type vid_listadapters to show a list of the available displays and their numbers, then vid_adapter <number> to select one. I believe you will need to restart GZDoom for the change to take effect, but it will persist in your INI file, so you should never have to do that again.

GZDoom runs on wrong monitor

by Marscaleb » Sun Jan 12, 2020 11:47 am

GZDoom won't run on my primary monitor; it only runs on "monitor 1." Every other game I can run uses the primary monitor, but not GZDoom.
Honestly, there should just be an option to pick which monitor I want to run on. I have no idea why no game puts that in their options; let me pick the dang screen!

Top