Weird resolution problem
Moderator: Graf Zahl
-
- Posts: 4
- Joined: Sun Nov 13, 2016 12:49
Weird resolution problem
Hi,
Newer versions of GZDoom have this weird issue on my computer, whereby you can't change the resolution - whatever resolution you select in the Video mode screen, the actual game window is always in 1920x1080. The on-screen text will change to the resolution you select, but the actual game window is always the same.
Older versions of GZDoom don't have this problem - version 0.4.6 lets me change the resolution to whatever I like. It's not like it ruins the game or anything, but I like playing the game in the original resolution just see (sort of) what the game looked like in 1993 or whenever. Any help would be greatly appreciated.
I'm running the game on a 2011 iMac with OSX Sierra, 8 gig of RAM.
Newer versions of GZDoom have this weird issue on my computer, whereby you can't change the resolution - whatever resolution you select in the Video mode screen, the actual game window is always in 1920x1080. The on-screen text will change to the resolution you select, but the actual game window is always the same.
Older versions of GZDoom don't have this problem - version 0.4.6 lets me change the resolution to whatever I like. It's not like it ruins the game or anything, but I like playing the game in the original resolution just see (sort of) what the game looked like in 1993 or whenever. Any help would be greatly appreciated.
I'm running the game on a 2011 iMac with OSX Sierra, 8 gig of RAM.
-
- Developer
- Posts: 798
- Joined: Sat Jul 23, 2016 7:53
Re: Weird resolution problem
Are you running it full screen or in windowed mode?
-
- Posts: 4
- Joined: Sun Nov 13, 2016 12:49
Re: Weird resolution problem
It's in full screen mode. I just tried it in windowed mode, and changing the resolution changed the size of the window, but it doesn't do anything in full screen mode.
-
- Developer
- Posts: 259
- Joined: Sun Aug 07, 2011 13:36
Re: Weird resolution problem
Set gl_scale_viewport CVAR to false to "fix" the problem. The way fullscreen is implemented on macOS (using topmost borderless window) this variable doesn't make much sense in this mode.
-
- Developer
- Posts: 798
- Joined: Sat Jul 23, 2016 7:53
Re: Weird resolution problem
The places that cvar is used should probably combine it with a fullscreen check: if (gl_scale_viewport && !IsFullscreen()).
-
- Posts: 4
- Joined: Sun Nov 13, 2016 12:49
Re: Weird resolution problem
Many thanks - that sorted the problem, much appreciated. Is there any way of making the change permanent other than using the archivecvar command?
- Rachael
- Developer
- Posts: 3646
- Joined: Sat May 13, 2006 10:30
Re: Weird resolution problem
Create an autoexec.cfg in your config folder. I *think* Mac will support a plaintext file just fine for this purpose. (Does SimpleText properly do this without dressing the file or putting in markups that GZDoom will not support?)
In there you can do "set gl_scale_viewport false" plus any other runtime adjustments you wish to make.
In there you can do "set gl_scale_viewport false" plus any other runtime adjustments you wish to make.
-
- Posts: 4
- Joined: Sun Nov 13, 2016 12:49
Re: Weird resolution problem
That worked perfectly. You guys are superstars, thanks so much.
- Rachael
- Developer
- Posts: 3646
- Joined: Sat May 13, 2006 10:30
Re: Weird resolution problem
You're welcome.
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: Weird resolution problem
This should be saveable, though.
- Rachael
- Developer
- Posts: 3646
- Joined: Sat May 13, 2006 10:30
Re: Weird resolution problem
Would it help you if I did a pull request updating that CVAR to archive as well as a quick ZDoom merge? (The ZDoom merge should be stable - it's been tested in both QZDoom and GZZScript)
-
- Developer
- Posts: 798
- Joined: Sat Jul 23, 2016 7:53
Re: Weird resolution problem
That CVAR was mostly intended for windowed mode where there's two usage scenarios: 1) resize changes canvas to match window, and 2) canvas should be something fixed (like 320x240) but letterbox within the window (like a video in a video player).
However, in the Mac full screen situation, there's never really a situation where you'd want gl_scale_viewport to be on. Hence why I suggested checking for full screen in the code and make that override the CVAR.
However, in the Mac full screen situation, there's never really a situation where you'd want gl_scale_viewport to be on. Hence why I suggested checking for full screen in the code and make that override the CVAR.