portal2 icon indicating copy to clipboard operation
portal2 copied to clipboard

Failing to create D3D Device

Open totesmaggots opened this issue 3 years ago • 7 comments

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

totesmaggots avatar Mar 02 '21 20:03 totesmaggots

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.

pdaniell-nv avatar Mar 09 '21 17:03 pdaniell-nv

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

totesmaggots avatar Mar 09 '21 18:03 totesmaggots

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

Joshua-Ashton avatar Mar 09 '21 18:03 Joshua-Ashton

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.

pdaniell-nv avatar Mar 09 '21 20:03 pdaniell-nv

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

vulkaninfo.txt

totesmaggots avatar Mar 09 '21 20:03 totesmaggots

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

pdaniell-nv avatar Mar 09 '21 22:03 pdaniell-nv

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.

kotenok2000 avatar Mar 24 '24 16:03 kotenok2000