1
0
Fork 0

Set the default oversampling amount to 2x

Oversampling is not always needed, so this is probably a better default.
This commit is contained in:
Robbert van der Helm 2023-04-05 18:54:13 +02:00
parent 913aa4bef9
commit d3f820dc8c

View file

@ -33,8 +33,8 @@ const MAX_OVERSAMPLING_FACTOR: usize = 4;
const MAX_OVERSAMPLING_TIMES: usize = oversampling_factor_to_times(MAX_OVERSAMPLING_FACTOR); const MAX_OVERSAMPLING_TIMES: usize = oversampling_factor_to_times(MAX_OVERSAMPLING_FACTOR);
const MAX_OVERSAMPLED_BLOCK_SIZE: usize = MAX_BLOCK_SIZE * MAX_OVERSAMPLING_TIMES; const MAX_OVERSAMPLED_BLOCK_SIZE: usize = MAX_BLOCK_SIZE * MAX_OVERSAMPLING_TIMES;
/// This corresponds to 4x oversampling. /// This corresponds to 2x oversampling.
const DEFAULT_OVERSAMPLING_FACTOR: usize = 2; const DEFAULT_OVERSAMPLING_FACTOR: usize = 1;
struct SoftVacuum { struct SoftVacuum {
params: Arc<SoftVacuumParams>, params: Arc<SoftVacuumParams>,