nv-filters: Change Background Blur to perf mode

In order to alleviate the demands on GPU, the Background Blur is now set
to Perf mode.

Signed-off-by: pkv <pkv@obsproject.com>
This commit is contained in:
pkv
2025-08-21 16:52:14 -04:00
committed by Ryan Foster
parent ffd3a2a34e
commit 2ad236740f
+1 -1
View File
@@ -135,7 +135,7 @@ static void nvvfx_filter_update(void *data, obs_data_t *settings)
filter->processing_interval = (int)obs_data_get_int(settings, S_PROCESSING);
float strength = (float)obs_data_get_double(settings, S_STRENGTH);
if (id == S_FX_AIGS || id == S_FX_BG_BLUR) {
int mode = id == S_FX_BG_BLUR ? (int)S_MODE_QUALITY : (int)obs_data_get_int(settings, S_MODE);
int mode = id == S_FX_BG_BLUR ? (int)S_MODE_PERF : (int)obs_data_get_int(settings, S_MODE);
if (filter->mode != mode) {
filter->mode = mode;
vfxErr = NvVFX_SetU32(filter->handle, NVVFX_MODE, mode);