ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
634 stars 74 forks source link

[Portal, HL2] Odd behavior with -vulkan and weird multi-monitor setups? #3862

Open quat1024 opened 2 years ago

quat1024 commented 2 years ago

Hi. I use a 16:9 1920x1080 monitor as my main display, and have a portrait 4:5 1024x1280 monitor as the secondary display. Sorry for being a walking edge case.

image

When launching Portal or Half-Life 2 (or maybe other games but those are the ones I have) with the -vulkan launch option, the splash screen opens in exclusive fullscreen on the secondary monitor. After the animation completes or after skipping the animation with the spacebar, the game moves to the primary monitor in a borderless window, but still uses the 1024x1280 resolution:

image

With -gamepadui: I can't navigate to the video settings screen with a mouse and keyboard. With a controller, I can't see the right half of the video settings page, so I'm not sure what I'm actually setting the options to, but so far no amount of futzing around in the dark has convinced the game to display in landscape.

With -vulkan: I can navigate to the video settings screen.

The games open without issue without -vulkan or -gamepadui, with the splash screen and in-game events both opening on the primary monitor, as expected.

This does not affect Portal 2, it opens as expected with -vulkan.

System information: https://paste.ee/p/ipMMx

quat1024 commented 2 years ago

Updated because this is actually related to -vulkan and not -gamepadui, and I learned a bit more because I was able to access the Half-Life 2 video settings screen using the regular desktop UI.

vrad-exe commented 6 months ago

Not sure if this helps at this point, but you can use -dx9 to force it to use DirectX even in GamepadUI mode. You shouldn't really be using DXVK on Windows, it's annoying that GamepadUI automatically turns it on. It's only useful in Portal 2 because it works around a couple driver bugs, those don't exist in any other games so no reason to enable it.