ValveSoftware / portal2

Issues for the Linux port of Portal 2
140 stars 11 forks source link

Failing to create D3D Device #342

Open totesmaggots opened 3 years ago

totesmaggots commented 3 years ago

When attempting to launch with vulkan, it will fail unless the screen ratio is set to not match my actual screen size. Even changing ratio to something like 1920x1079 will let it launch. I am using NVIDIA Optimus.

image

pdaniell-nv commented 3 years ago

Do you have a repro or instructions you can share? What platform is this on (laptop/desktop, Windows 10 version, driver version, GPUs, etc.)? A capture of your "vulkaninfo" would also be good. Thanks.

totesmaggots commented 3 years ago

In this case I am simply launching Portal 2 with -vulkan on a laptop using Windows version 1909, with an Nvidia GeForce GTX 1650 GPU. Below is the system info as well as the vulkan info

NVIDIA System Information 03-09-2021 13-09-31.txt

vulkaninfo.txt

Joshua-Ashton commented 3 years ago

You can use -w [width] -h [height] to set the resolution before the game starts.

pdaniell-nv commented 3 years ago

Thanks for the extra info. I wasn't able to reproduce this for myself on my laptop launching the game with "-vulkan" in fullscreen mode. Looking at your vulkaninfo I notice you have the VK_LAYER_OBS_HOOK implicit layer, which makes me wonder if this might be interfering. You could try setting the following environment variable DISABLE_VULKAN_OBS_CAPTURE=1 and launching Portal 2 again. You can run vulkaninfo again to confirm that actually disabled the layer.

totesmaggots commented 3 years ago

This seemed to have no effect, and again here is the vulkaninfo.

vulkaninfo.txt

pdaniell-nv commented 3 years ago

Thanks for trying that and the updated vulkaninfo. Sorry it wasn't the solution.

If you don't mind, I'd like you to try a new driver 458.06, which is the latest Vulkan beta driver from here: https://developer.nvidia.com/vulkan-driver

kotenok2000 commented 3 months ago

When i use -vulkan and change Fullscreen Windowed to Exclusive fullscreen graphics become glitchy, and when i restart portal 2 i get Failed to create D3D Device error.