obs-nvenc: Only show UHQ tune on supported GPUs

This commit is contained in:
derrod
2024-08-19 13:21:21 +02:00
committed by Rodney
parent 8758ece291
commit db5b226bb9

View File

@@ -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");