From d3f820dc8c0b2d17d1ad7e2c7eecd4826da31dd7 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 5 Apr 2023 18:54:13 +0200 Subject: [PATCH] Set the default oversampling amount to 2x Oversampling is not always needed, so this is probably a better default. --- plugins/aw_soft_vacuum/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/aw_soft_vacuum/src/lib.rs b/plugins/aw_soft_vacuum/src/lib.rs index a6a71bbc..43a9548d 100644 --- a/plugins/aw_soft_vacuum/src/lib.rs +++ b/plugins/aw_soft_vacuum/src/lib.rs @@ -33,8 +33,8 @@ const MAX_OVERSAMPLING_FACTOR: usize = 4; const MAX_OVERSAMPLING_TIMES: usize = oversampling_factor_to_times(MAX_OVERSAMPLING_FACTOR); const MAX_OVERSAMPLED_BLOCK_SIZE: usize = MAX_BLOCK_SIZE * MAX_OVERSAMPLING_TIMES; -/// This corresponds to 4x oversampling. -const DEFAULT_OVERSAMPLING_FACTOR: usize = 2; +/// This corresponds to 2x oversampling. +const DEFAULT_OVERSAMPLING_FACTOR: usize = 1; struct SoftVacuum { params: Arc,