godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.82k stars 21.14k forks source link

Godot 4.0 (Vulkan) doesn't start if Godot 3.x (OpenGL) is running - Optimus on Linux with Bumblebee daemon #57132

Open git2013vb opened 2 years ago

git2013vb commented 2 years ago

Godot version

4.0alpha 1

System information

Debian 11

Issue description

As stated in title. Also If I close 3.5 beta 1 then 4.0 alpha 1 start. Is like 3.5 put on hold 4.0 ps.: I have NVIDIA Optimus . So to me seems pretty much similar to https://github.com/godotengine/godot/issues/48091#issuecomment-915226816

If I open just the 4.0 the I have this error:

Godot Engine v4.0.alpha1.official.31a7ddbf8 - https://godotengine.org
Can't open bumblebee display.
ERROR: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
    loader_scanned_icd_add: ICD libnv_vulkan_wrapper.so.1 doesn't support interface version compatible with loader, skip this ICD.
    Objects - 1
        Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 147716592
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:157)
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
Vulkan API 1.2.162 - Using Vulkan Device #0: Intel - Intel(R) HD Graphics 4000 (IVB GT2)

It let me open project manager and so on nevertheless..

Thanks

Steps to reproduce

Its seems related who have NVIDIA Optimus. Not sure 100%

Minimal reproduction project

NA

akien-mga commented 2 years ago

Most likely bumblebee doesn't support running both Vulkan and OpenGL contexts at the same time (or the patched version you might have, as I don't think stock bumblebee supports Vulkan at all, the project is unmaintained since 2013: https://github.com/Bumblebee-Project/Bumblebee/commits/master).

You might be able to confirm that by trying to run other OpenGL and Vulkan applications at the same time.

git2013vb commented 2 years ago

Most likely bumblebee doesn't support running both Vulkan and OpenGL contexts at the same time

Its possible

You might be able to confirm that by trying to run other OpenGL and Vulkan applications at the same time.

Yes , I can confirm I can run Dota2 (setting on vulkan render) and Blender 3.0 (optirun - OpenGL) at same time

These issue, however, is related to Godot (3.x and another OpenGL software. Ref: https://github.com/godotengine/godot/issues/48091#issuecomment-824895551 Anyway AFIK its scheduled to be integrated in 3.5 soon. So, I guess, it will be ported in 4.0 too.. Right?