nowrep / obs-vkcapture

OBS Linux Vulkan/OpenGL game capture
GNU General Public License v2.0
524 stars 25 forks source link

Request: Reduce or provide option to reduce verbosity #193

Closed GloriousEggroll closed 8 months ago

GloriousEggroll commented 8 months ago

In nobara we have the obs-vkcapture vulkan layer enabled globally. sometimes when running things in terminal such as winetricks for example, we get a lot of needless spam:

[obs-vkcapture] Init Vulkan 1.4.7 (32bit)
[obs-vkcapture] CreateInstance
[obs-vkcapture] CreateInstance VK_SUCCESS
[obs-vkcapture] DestroyInstance
[obs-vkcapture] Init Vulkan 1.4.7 (64bit)
[obs-vkcapture] CreateInstance
[obs-vkcapture] CreateInstance VK_SUCCESS
[obs-vkcapture] DestroyInstance
[obs-vkcapture] Init Vulkan 1.4.7 (32bit)
[obs-vkcapture] CreateInstance
[obs-vkcapture] CreateInstance VK_SUCCESS
[obs-vkcapture] DestroyInstance
[obs-vkcapture] Init Vulkan 1.4.7 (64bit)
[obs-vkcapture] CreateInstance
[obs-vkcapture] CreateInstance VK_SUCCESS
[obs-vkcapture] DestroyInstance
[obs-vkcapture] Init Vulkan 1.4.7 (32bit)
[obs-vkcapture] CreateInstance
[obs-vkcapture] CreateInstance VK_SUCCESS
[obs-vkcapture] DestroyInstance
[obs-vkcapture] Init Vulkan 1.4.7 (64bit)
[obs-vkcapture] CreateInstance
[obs-vkcapture] CreateInstance VK_SUCCESS
[obs-vkcapture] DestroyInstance
[obs-vkcapture] Init Vulkan 1.4.7 (32bit)
[obs-vkcapture] CreateInstance
[obs-vkcapture] CreateInstance VK_SUCCESS
[obs-vkcapture] DestroyInstance
nowrep commented 8 months ago

It's only enabled in debug builds.

GloriousEggroll commented 8 months ago

It's only enabled in debug builds.

neither our build nor the official fedora build specify debug though:

https://src.fedoraproject.org/rpms/obs-studio-plugin-vkcapture/blob/rawhide/f/obs-studio-plugin-vkcapture.spec

https://github.com/Nobara-Project/rpm-sources/blob/main/baseos/obs-studio-plugin-vkcapture/obs-studio-plugin-vkcapture.spec

nowrep commented 8 months ago

Try to explicitly set -DCMAKE_BUILD_TYPE=Release, not sure what's the default (it may be debug actually).

GloriousEggroll commented 8 months ago

Try to explicitly set -DCMAKE_BUILD_TYPE=Release, not sure what's the default (it may be debug actually).

i did, while the create/destroy messages are gone, i still get Init Vulkan messages:

[obs-vkcapture] Init Vulkan 1.4.8 (64bit)
[obs-vkcapture] Init Vulkan 1.4.8 (64bit)
[obs-vkcapture] Init Vulkan 1.4.8 (64bit)
[obs-vkcapture] Init Vulkan 1.4.8 (32bit)
[obs-vkcapture] Init Vulkan 1.4.8 (32bit)
[obs-vkcapture] Init Vulkan 1.4.8 (32bit)
[obs-vkcapture] Init Vulkan 1.4.8 (64bit)
[obs-vkcapture] Init Vulkan 1.4.8 (64bit)
[obs-vkcapture] Init Vulkan 1.4.8 (64bit)
[obs-vkcapture] Init Vulkan 1.4.8 (64bit)
[obs-vkcapture] Init Vulkan 1.4.8 (64bit)
[obs-vkcapture] Init Vulkan 1.4.8 (32bit)
[obs-vkcapture] Init Vulkan 1.4.8 (32bit)
[obs-vkcapture] Init Vulkan 1.4.8 (32bit)
[obs-vkcapture] Init Vulkan 1.4.8 (32bit)
[obs-vkcapture] Init Vulkan 1.4.8 (32bit)
[obs-vkcapture] Init Vulkan 1.4.8 (32bit)
nowrep commented 8 months ago

One message per vkCreateInstance is fine, it also helps with debugging issues with loading the layer.