Skip to content

Commit 901cbd2

Browse files
committed
Disable Vulkan debug layers by default
The vast majority of Vulkan code running in Moonlight is part of FFmpeg or libplacebo, so the debug layers really just slow things down without finding any bugs in our code. Additionally, there are some overzealous checks firing constantly on libplacebo and FFmpeg with certain Vulkan drivers that we can't do anything about.
1 parent 2a63ad5 commit 901cbd2

File tree

1 file changed

+2
-8
lines changed
  • app/streaming/video/ffmpeg-renderers

1 file changed

+2
-8
lines changed

app/streaming/video/ffmpeg-renderers/plvk.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,8 @@ bool PlVkRenderer::initialize(PDECODER_PARAMETERS params)
378378

379379
pl_vk_inst_params vkInstParams = pl_vk_inst_default_params;
380380
{
381-
bool ok;
382-
vkInstParams.debug_extra = !!qEnvironmentVariableIntValue("PLVK_DEBUG_EXTRA", &ok);
383-
vkInstParams.debug = vkInstParams.debug_extra || !!qEnvironmentVariableIntValue("PLVK_DEBUG", &ok);
384-
#ifdef QT_DEBUG
385-
if (!ok) {
386-
vkInstParams.debug = true;
387-
}
388-
#endif
381+
vkInstParams.debug_extra = !!qEnvironmentVariableIntValue("PLVK_DEBUG_EXTRA");
382+
vkInstParams.debug = vkInstParams.debug_extra || !!qEnvironmentVariableIntValue("PLVK_DEBUG");
389383
}
390384
vkInstParams.get_proc_addr = (PFN_vkGetInstanceProcAddr)SDL_Vulkan_GetVkGetInstanceProcAddr();
391385
vkInstParams.extensions = instanceExtensions.data();

0 commit comments

Comments
 (0)