Open LiphiTC opened 1 year ago
What's the output when running on X? Is it on the screenshot, I assume.
Also please try OBS_VKCAPTURE_GLVULKAN=1 obs-gamecapture prime-run glxgears
on wayland.
And also try to add OBS_VKCAPTURE_GLVULKAN=1
when running on X.
When running on Xorg it looks like a normal glxgears output
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
[obs-vkcapture] Init GLX 1.4.0
305 frames in 5.0 seconds = 60.915 FPS
[obs-vkcapture] Texture GL_RGBA 958x1048
[obs-vkcapture] ------------------ opengl capture started ------------------
300 frames in 5.0 seconds = 59.989 FPS
[obs-vkcapture] ------------------- opengl capture freed -------------------
Adding OBS_VKCAPTURE_GLVULKAN=1
has the same result on both Wayland and Xorg: glxgears doesn't crash but obs doesn't capture it.
OBS_VKCAPTURE_GLVULKAN=1 obs-gamecapture prime-run glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
[obs-vkcapture] Init GLX 1.4.0
131 frames in 5.1 seconds = 25.913 FPS
[obs-vkcapture] Texture GL_RGBA (Vulkan) 632x1026
[obs-vkcapture] ------------------ opengl capture started ------------------
[obs-vkcapture] ------------------- opengl capture freed -------------------
[obs-vkcapture] Texture GL_RGBA (Vulkan) 632x1026
[obs-vkcapture] Vulkan: OpenGL import failed
[obs-vkcapture] shtex init failed
[obs-vkcapture] gl_init failed
209 frames in 5.0 seconds = 41.682 FPS
Does it work correctly when you also run OBS on nvidia gpu?
Yeah, it works fine if OBS runs on nvidia gpu, thank you. But is it actually possible to make them run on the different gpu? It works fine with vulkan and my GPU doesn't support NVENC so I would like to use gstreamer encoder on my iGPU
Oh nvm, looks like OBS uses encoder on iGPU anyways. But I still would like to run them on the different GPUs
What nvidia driver and version are you using?
First of all, dri3 path (dri_buffers_from_pixmap) shouldn't be working with nvidia so that's why the Vulkan fallback was added. But for you the dri3 path works and the Vulkan path doesn't, which is strange.
Can you please post output of glxinfo
running on nvidia gpu?
I'm using nvidia-dkms driver 535.54.03
On Wayland:
glxgears crashes immediately after start:
On Xorg:
glxgears able to run, but the result looks really messed up. It's trying to capture other windows which are running under iGPU.![2023-06-26-183646_1920x1080_scrot](https://github.com/nowrep/obs-vkcapture/assets/48130941/f96dab15-5fa7-4abc-8fce-154c71ddad0f)
I'm using hybrid configuration via optimus-manager
iGPU: Intel UHD Graphics 620 dGPU: Nvidia GeForce MX150