mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-24 08:20:42 -04:00
obs-nvenc: Only show UHQ tune on supported GPUs
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user