diff --git a/Cargo.toml b/Cargo.toml index dcd1b66..e1cc914 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -72,7 +72,9 @@ debug = 2 debug-assertions = false incremental = false lto = 'fat' -opt-level = 1 +# opt level needs to be benchmarked after every major feature +# due to the changes in binary size and alignment +opt-level = 2 overflow-checks = false # do not optimize proc-macro crates = faster builds from scratch diff --git a/src/input.rs b/src/input.rs index b3517dc..2e2a759 100644 --- a/src/input.rs +++ b/src/input.rs @@ -584,8 +584,8 @@ pub async fn update_stick_states_task( SIGNAL_STICK_STATE.signal(current_stick_state.clone()); - ticker.next().await; yield_now().await; + ticker.next().await; if let Some(new_config) = SIGNAL_CONFIG_CHANGE.try_take() { controller_config = new_config;