Forums
April 18, 2024, 11:41 AM

Author Topic: Activating Stretch in windowed mode on 3.8  (Read 4253 times)

0 Members and 1 Guest are viewing this topic.

Offline StepS

Activating Stretch in windowed mode on 3.8
« on: July 20, 2020, 12:06 AM »
With 3.8 there is a (currently undocumented) feature to stretch or shrink the in-game window to appear different from the display resolution.

  • Open the registry editor (Win+R -> regedit.exe)
  • Navigate to HKEY_CURRENT_USER\SOFTWARE\Team17SoftwareLTD\WormsArmageddon\Options (paste into the address bar if using Windows 10)
  • Create two REG_DWORD values named WindowXSize and WindowYSize.
  • Edit these values in mode to the size values you want* (e.g. 3840x2160). A common use would be to stretch to the desktop res borderless, so you can specify your desktop resolution.
  • Check and/or edit DisplayXSize and DisplayYSize, this is the actual internal resolution and the one you see in game options. This resolution will be stretched or shrunk to the Window size you specified earlier. Shrinking a higher-resolution to a window of smaller size is actually new and was not possible in D3D9Wnd. So, for example, you can set a 1920x1080 game to run downscaled in a smaller window with borders.

In the future both of these should become more accessible in the game interface.

Note that this does not apply to the menus and for that SuperFrontendHD is currently required.

Another thing to mention is that super-resolution is already supported and you do not need to explicitly specify WindowX/YSize for it. So, if you set the game or video export to something higher than your desktop res, it will automatically be shrunk to fit the desktop. The aspect ratio will be preserved, unlike in D3D9Wnd.

IMPORTANT NOTE: This DOES NOT WORK with OpenGL renderers. They do not support scaling/stretching of any kind. You need to use a Direct3D 9 renderer for this. (DDraw works but is not visually good in my experience)

* Size of the window's client area, excluding the border.
« Last Edit: August 18, 2020, 04:05 PM by StepS »
Dec 30 2013 23:59:44 <StepS> windowed mode isn't the only thing you need about frontend
Dec 30 2013 23:59:49 <StepS> you need it to be actually bigger
Dec 31 2013 00:00:13 <StepS> it actually is very small on my 15-inch full HD screen
Dec 31 2013 00:00:25 <StepS> while running at 640x480 or stretched mode makes it fuzzy
Dec 31 2013 00:00:44 <StepS> this problem has been around since the Worms Armageddon's release and no one has even tried to beat it
[...]

Offline h3oCharles

Re: Activating Stretch in windowed mode on 3.8
« Reply #1 on: June 30, 2021, 08:44 AM »
can i have 720 upscaled to 1080p tho?

note to self: yes, i can, run game at 720p, and set display x/y size to 1080p
« Last Edit: January 13, 2023, 02:19 PM by h3oCharles »

Offline Mega`Adnan

Re: Activating Stretch in windowed mode on 3.8
« Reply #2 on: February 20, 2022, 12:26 PM »
I am trying to set up WA with taskbar visible on 1920x1080 screen.
I tried to make WA windows stretched to 1920x1030 (50px for taskbar, I've checked with Photoshop), but it seems like the stretched windows is being set in middle of screen but not from top.
I wanna make sure it's being set from top of screen without the top bar being seen.
I wanna do the same for frontend too.









Adnan, you are Mega, not Micro and not even faint  :D So fight till the end please.

Offline h3oCharles

Re: Activating Stretch in windowed mode on 3.8
« Reply #3 on: January 31, 2023, 11:52 PM »
gonna necro this to say that apparently this used incorrectly can backfire by framerate hitching like crazy
apparently, i was trying to stretch 1080p to 1440p, while i had my resolution set to 1080p

because of this, to ease my way into switching between the resolutions, i made registry edit files
the two examples ill provide is for 1080p and 1440p, the resolution dimensions are written in hex

the most notable usecase i found for this is setting game to 720p and stretching it to 1440p, with a 1440p custom resolution using nvidia drivers - making every pixel 2x in size
it is especially useful for figuring out nudging and notching - an essential skill for figuring out precise shots
« Last Edit: February 01, 2023, 12:27 AM by h3oCharles »

Offline Lollie

Re: Activating Stretch in windowed mode on 3.8
« Reply #4 on: November 23, 2023, 01:29 AM »
I was just pointed this way by h3o, thank you for sharing this! I wanted a way to scale the in-game resolution by 2X (1280x720 in-game, to fit a 2560x1440 screen), and this solved it. Hopefully a future W:A update isn't too far away.

After setting this up, I noticed that the frontend menu was now displaying in a 1280x720 window despite having SuperFrontendHD installed. If anyone else is encountering this, open your Worms Armageddon installation folder, and edit the file "wkSuperFrontend.ini" in Notepad/++. Under [Misc], look for (or if missing, add the line) "Resolution=" and set it to "Resolution=Desktop". This will force the frontend to run at fullscreen resolution again.

Offline DragonQ

Re: Activating Stretch in windowed mode on 3.8
« Reply #5 on: November 30, 2023, 09:49 AM »
I was just pointed this way by h3o, thank you for sharing this! I wanted a way to scale the in-game resolution by 2X (1280x720 in-game, to fit a 2560x1440 screen), and this solved it. Hopefully a future W:A update isn't too far away.

After setting this up, I noticed that the frontend menu was now displaying in a 1280x720 window despite having SuperFrontendHD installed. If anyone else is encountering this, open your Worms Armageddon installation folder, and edit the file "wkSuperFrontend.ini" in Notepad/++. Under [Misc], look for (or if missing, add the line) "Resolution=" and set it to "Resolution=Desktop". This will force the frontend to run at fullscreen resolution again.
This doesn't seem to work for me. I applied the 1440 regedit, then set in-game resolution to 1080p, but it still just changes my monitor to be 1080p when the game starts.

Offline h3oCharles

Re: Activating Stretch in windowed mode on 3.8
« Reply #6 on: December 20, 2023, 06:36 PM »
This doesn't seem to work for me. I applied the 1440 regedit, then set in-game resolution to 1080p, but it still just changes my monitor to be 1080p when the game starts.

registry entries set what the game needs to be stretched to (which would be your monitor resolution), for things to get scaled, you need to set in-game resolution smaller to your monitor. To do that, you might need to make a custom resolution in your graphics card settings. Keep in mind that this only affects in-game resolution

Also, 1080p stretching to 1440p is not 2x

quarter of 1080p is 960x540 (you need to create a custom resolution of 960x540)
quarter of 1440p is 720p
quarter of 4k is 1080p
« Last Edit: December 20, 2023, 07:04 PM by h3oCharles »

Offline DragonQ

Re: Activating Stretch in windowed mode on 3.8
« Reply #7 on: December 21, 2023, 11:49 AM »
registry entries set what the game needs to be stretched to (which would be your monitor resolution), for things to get scaled, you need to set in-game resolution smaller to your monitor. To do that, you might need to make a custom resolution in your graphics card settings. Keep in mind that this only affects in-game resolution
Yes this is what I'm doing.

Also, 1080p stretching to 1440p is not 2x

quarter of 1080p is 960x540 (you need to create a custom resolution of 960x540)
quarter of 1440p is 720p
quarter of 4k is 1080p
So it has to be whole numbers? In that case hopefully setting in-game resolution to 720p will work to get a stretch to 1440p. Not ideal though, might be better to just play at 1080p.

Offline h3oCharles

Re: Activating Stretch in windowed mode on 3.8
« Reply #8 on: January 21, 2024, 10:52 PM »
So it has to be whole numbers?
Ideally yes, otherwise you'll get a stretch that'll cause visual artifacts when moving the camera

[...] setting in-game resolution to 720p will work to get a stretch to 1440p.
this is ideal only if you have a 1440p monitor, as a 2x2 grid of 720p monitors makes up 1440p