From db5b226bb93e7478e76e3e92a21f9f29dfbb89cc Mon Sep 17 00:00:00 2001 From: derrod Date: Mon, 19 Aug 2024 13:21:21 +0200 Subject: [PATCH] obs-nvenc: Only show UHQ tune on supported GPUs --- plugins/obs-nvenc/nvenc-properties.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/obs-nvenc/nvenc-properties.c b/plugins/obs-nvenc/nvenc-properties.c index ff67cdba1..486b80a2b 100644 --- a/plugins/obs-nvenc/nvenc-properties.c +++ b/plugins/obs-nvenc/nvenc-properties.c @@ -175,7 +175,10 @@ obs_properties_t *nvenc_properties_internal(enum codec_type codec) #define add_tune(val) \ obs_property_list_add_string(p, obs_module_text("Tuning." val), val) #ifdef NVENC_12_2_OR_LATER - if (codec == CODEC_HEVC) + /* The UHQ tune is only supported on Turing or later. + * It uses the temporal filtering feature, so we can use its + * availability as an indicator that we are on a supported GPU. */ + if (codec == CODEC_HEVC && caps->temporal_filter) add_tune("uhq"); #endif add_tune("hq");