Use vulkan encode by default even on NVIDIA

This commit is contained in:
Patrick Nicolas committed 2026-09-14 21:19:49 +02:00
1 parent a5837b47c7
commit 8eff464261
2 files changed
+13 -13

No files matched your search

+11 -11
View File
@@ -223,17 +223,6 @@ public:
if (config.codec == video_codec::raw or config.name == encoder_raw)
return {encoder_raw, video_codec::raw};
#if WIVRN_USE_NVENC
if ((nvidia and config.name.empty()) or config.name == encoder_nvenc)
{
for (auto codec: config.codec ? std::vector{*config.codec} : info.supported_codecs)
{
if (check_nvenc(codec))
return {encoder_nvenc, codec};
}
}
#endif
#if WIVRN_USE_VULKAN_ENCODE
if (config.name.empty() or config.name == encoder_vulkan)
{
@@ -245,6 +234,17 @@ public:
}
#endif
#if WIVRN_USE_NVENC
if ((nvidia and config.name.empty()) or config.name == encoder_nvenc)
{
for (auto codec: config.codec ? std::vector{*config.codec} : info.supported_codecs)
{
if (check_nvenc(codec))
return {encoder_nvenc, codec};
}
}
#endif
#if WIVRN_USE_VAAPI
if (config.name.empty() or config.name == encoder_vaapi)
{