rtxON icon indicating copy to clipboard operation
rtxON copied to clipboard

Problem with launch

Open dorohovGeorge opened this issue 2 years ago • 1 comments

Hi, I'm having a problem at startup. I've done all the steps related to dependencies and cmake generation. But when I ran rtxOn.exe in Visual Studio 2022 I got this error. And it also indicated that there was an error with vkCreateDevice in vulkanapp.cpp file on line 353. I already updated the Nvidia driver, reinstalled VulkanSDK. I have RTX 3060 mobile. Can you help me? image

dorohovGeorge avatar Jun 07 '23 23:06 dorohovGeorge

I am on an Nvidia Optimus laptop here on linux. I was having similar issues. The problem is that the program tries to use the first gpu on the Vulkan Device discovery process.

Change

    mPhysicalDevice = physDevices[0];

to

    mPhysicalDevice = physDevices[1];

at src/framework/vulkanapp.cpp:208

That should use the other gpu.

There is way to use only the gpu which supports the required features but this is a hacky fix.

Dr-42 avatar Aug 06 '24 06:08 Dr-42