Skip to content

Commit b75813b

Browse files
committed
wip: try to find acceptable perf/quality values
- current gives around 20-25% Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
1 parent 88a8235 commit b75813b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils/media/effects/virtual-background/WebGLCompositor.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88
* Number of horizontal + vertical blur iterations applied.
99
* Larger value - stronger blur effect. Low GPU impact.
1010
*/
11-
const DEFAULT_BLUR_PASSES = 3
11+
const DEFAULT_BLUR_PASSES = 2
1212
/**
1313
* Spatial radius of the bilateral filter.
1414
* Larger value - smoother mask over a wider area, softer edges. High GPU impact.
1515
*/
16-
const SIGMA_SPACE = 10
16+
const SIGMA_SPACE = 9
1717
/**
1818
* Range sensitivity of the bilateral filter.
1919
* Larger value: more smoothing across edges. Low GPU impact.
2020
*/
21-
const SIGMA_COLOR = 0.15
21+
const SIGMA_COLOR = 0.25
2222
/**
2323
* Sampling stride scale for the bilateral kernel.
2424
* Larger value - faster processing, rougher mask refinement. High GPU impact.
2525
*/
26-
const SPARSITY_FACTOR = 0.66
26+
const SPARSITY_FACTOR = 0.95
2727

2828
/**
2929
* WebGL-based compositor for background effects.

0 commit comments

Comments
 (0)