Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to initialize Vulkan video driver but clean install video drivers and worked before #75947

Closed
krunkske opened this issue Apr 11, 2023 · 13 comments

Comments

@krunkske
Copy link

Godot version

4.0.2

System information

Windows 11, Vulcan, AMD ryzen 7, GTX 1650 latest available drivers (clean)

Issue description

Schermafbeelding 2023-04-11 175339
I have recently reinstalled Windows and i wanted to start working on some Godot projects again but every time when I open a project this happens. only happens for Vulcan/Forward+.

Steps to reproduce

i have no idea how.....

Minimal reproduction project

any project so i don't know if i need to supply one, ask me if needed

@clayjohn
Copy link
Member

Have you tried updating your GPU drivers? If you reinstalled Windows it is likely that you are back on your stock NVidia drivers and you need an update.

@krunkske
Copy link
Author

Have you tried updating your GPU drivers? If you reinstalled Windows it is likely that you are back on your stock NVidia drivers and you need an update.

I did

@clayjohn
Copy link
Member

Can you run Godot from the command line and double check that it is actually running on your dedicated GPU? Godot prints the name of the GPU it is using at startup time.

@krunkske
Copy link
Author

Can you run Godot from the command line and double check that it is actually running on your dedicated GPU? Godot prints the name of the GPU it is using at startup time.

U mean the console exe it comes with

@Calinou
Copy link
Member

Calinou commented Apr 11, 2023

Try setting the DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1 environment variable to 1. #73450 will do this automatically, at the cost of removing the ability to use an AMD IGP in systems where there's a dedicated NVIDIA graphics card on Windows.

@krunkske
Copy link
Author

Try setting the DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1 environment variable to 1. #73450 will do this automatically, at the cost of removing the ability to use an AMD IGP in systems where there's a dedicated NVIDIA graphics card on Windows.

that doesn't seem like an ideal situation. It isn't really recommended like you said on that post.il try it for now. Can you provide steps with how to do this?

@Calinou
Copy link
Member

Calinou commented Apr 12, 2023

Can you provide steps with how to do this?

See https://www.howtogeek.com/787217/how-to-edit-environment-variables-on-windows-10-or-11/

Note that the variable you need to set is called DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1, not DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS. Its value must be 1 (without quotes or spaces).
After setting the environment variable, reboot your system to make sure changes apply.

To confirm whether the variable is set correctly, reboot then open a command prompt (Windows + R and type in cmd), then run: echo %DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1%)
If this prints 1, the variable is set correctly.

@krunkske
Copy link
Author

Can you provide steps with how to do this?

See https://www.howtogeek.com/787217/how-to-edit-environment-variables-on-windows-10-or-11/

Note that the variable you need to set is called DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1, not DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS. Its value must be 1 (without quotes or spaces). After setting the environment variable, reboot your system to make sure changes apply.

Wait does this disable the igpu comepletly or only for Godot

@Calinou
Copy link
Member

Calinou commented Apr 12, 2023

Wait does this disable the igpu comepletly or only for Godot

This prevents Vulkan applications from using integrated graphics, but this does not affect OpenGL or Direct3D applications. This means apps and most other games on the system won't be affected.

In any case, you can revert this change by removing the environment variable then rebooting.

@krunkske
Copy link
Author

Wait does this disable the igpu comepletly or only for Godot

This prevents Vulkan applications from using integrated graphics, but this does not affect OpenGL or Direct3D applications. This means apps and most other games on the system won't be affected.

In any case, you can revert this change by removing the environment variable then rebooting.

Okay Il try it when I have time

@krunkske
Copy link
Author

maybe, just maybe i should update/install my igpu drivers too and not only the drivers from my main gpu an maybe that fixed my problem.....

@krunkske krunkske reopened this Apr 12, 2023
@krunkske
Copy link
Author

krunkske commented Apr 12, 2023

I'm gonna leave this open for future people who encounter this problem so feel free to comment if you encounter the same issue!

@Calinou Calinou closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants