The Ultimate Site of Worms Armageddon

Worms: Armageddon => General discussion => Topic started by: StepS on July 20, 2020, 12:06 AM

Title: Activating Stretch in windowed mode on 3.8
Post by: StepS 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.


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 (https://worms2d.info/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.
Title: Re: Activating Stretch in windowed mode on 3.8
Post by: h3oCharles 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
Title: Re: Activating Stretch in windowed mode on 3.8
Post by: Mega`Adnan 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.

[attachment=1]

[attachment=2]


Title: Re: Activating Stretch in windowed mode on 3.8
Post by: h3oCharles 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
Title: Re: Activating Stretch in windowed mode on 3.8
Post by: Lollie 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.
Title: Re: Activating Stretch in windowed mode on 3.8
Post by: DragonQ 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.
Title: Re: Activating Stretch in windowed mode on 3.8
Post by: h3oCharles 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
Title: Re: Activating Stretch in windowed mode on 3.8
Post by: DragonQ 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.
Title: Re: Activating Stretch in windowed mode on 3.8
Post by: h3oCharles 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