fix(events): remove sorting and deduplicating incoming actions (#356)

Fixes #355
This commit is contained in:
Alexandre Pasmantier 2025-02-08 15:21:54 +01:00 committed by GitHub
parent 86c100e381
commit df2592f2c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,7 +79,7 @@ impl From<ActionOutcome> for AppOutput {
}
const EVENT_BUF_SIZE: usize = 4;
const ACTION_BUF_SIZE: usize = 16;
const ACTION_BUF_SIZE: usize = 8;
impl App {
pub fn new(
@ -246,8 +246,6 @@ impl App {
buf: &mut Vec<Action>,
) -> Result<ActionOutcome> {
if self.action_rx.recv_many(buf, ACTION_BUF_SIZE).await > 0 {
buf.sort_unstable();
buf.dedup();
for action in buf.drain(..) {
if action != Action::Tick {
trace!("{action:?}");