-
Notifications
You must be signed in to change notification settings - Fork 26
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
obs-vkcapture starts capture Steam in-game overlay in Proton games #14
Comments
It depends on the load order of Vulkan layers. You can copy the layer JSON to explicit_layer.d (in /usr/share/vulkan or ~/.local/share/vulkan/) which will make it available as explicit layer and thus you will be able to set the load order. I'm not sure if you will be able to make Steam enable the overlay, but load the explicit layer instead of the implicit one (that is enabled just by env var).
This will load the layers in order you want (steam overlay won't be in capture), but you need to figure out how to stop Steam loading the implicit overlay layer (maybe just remove it from implicit_layer.d). |
Yeah, moving Steam overlay files from |
So I tried moving vkBasalt.json into explicit_layer.d/ and launching my game with |
Can you open new issue with this please? Also what shaders do you use in vkBasalt? It may be sRGB vs RGB issue. |
I am not sure if my issue is related, but MangoHud flickers in recordings and obs preview when I use this plugin with Elden Ring, this doesn't happen with Dark Souls III tho. |
A small update to that issue. Vulkan Loader drops VK_INSTANCE_LAYERS support. So from now you should use VK_LOADER_LAYERS_ENABLE and VK_LOADER_LAYERS_DISABLE instead. So you have to update your environment settings, e.g. from this: To that: Note it now uses comma instead of colon sign and also it supports globs. More info you could find here: https://github.com/KhronosGroup/Vulkan-Loader/blob/master/docs/LoaderInterfaceArchitecture.md |
Unlike VK_INSTANCE_LAYERS, the new env seem to be ignoring the ordering. Tried enable both mangohud and vkcapture as explicit layer. with with
The only way I can force the ordering is set one layer as implicit and one as explicit.
Also VK_LOADER_LAYERS_ENABLE seem to have higher priority then enable environment. With both edit: exporting
|
Currently also encountering the issue others have referred to wherein Game Capture via obs-vkcapture 1.2.2-1 (using OBS 28.1.2-2) does not show MangoHud overlay but does show the game, if said game is launched via Steam. Worth noting that this isn't an issue with games launched from Heroic Games Launcher from personal experience.
I've tried using these launch options in an attempt to follow the force ordering of Vulkan layers to be similar to @Billli11 by moving MangoHud.json to usr/share/vulkan/explicit_layer.d, setting OBS_VKCAPTURE=1, and disabled Steam fossilize and overlay to prevent them being called as layers, but to no avail.
I've tried with just Details about my PC from Steam. |
If you want to also capture Mangohud. you should set mangohud as Implicit layer and obs_vkcapture as explicit. So you should set
EDIT: VK_ADD_LAYER_PATH and VK_LOADER_LAYERS_ENABLE also work on steam overlay the overlay can be set to layer after obs_vkcapture.
|
@Billli11 Thank you for the clarification, it seems I was doing it in reverse. The above command you mentioned works when I set it as launch options on the game I'm running on Steam. |
So is it possible to achieve the following order, and if so how? I would like it to follow:
But setting
|
Use the old
You also need to make sure to have mangohud as explicit layer (only when using Vulkan loader < 1.3.255). |
Oh, after reading #14 (comment) I hadn't tried it. But using your example I'm always getting this order even if I move the entries around.
|
@DonKatsu
Edit 1: as of version 1.3.245
But currently there are a regression that the ordering of |
@Billli11 |
Seem like the vulkan loader behavior have been changed again. with version 1.3.255
if an implicit layer and an explicit layer share a same name, BOTH So you cannot force an layer to be explicit unless you copy layer's json file to Currently
|
I'm not convinced if I should treat that like a real issue, but it adds some inconstancy, considering it doesn't appear in native Valheim and Metro Exodus. Also I can't tell for sure when it first appeared, but a month ago I didn't see in-game overlay in the capture.
The text was updated successfully, but these errors were encountered: