Skip to content

Commit

Permalink
redpiler: fix one tick delay on inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
StackDoubleFlow committed Jul 25, 2023
1 parent 79f381f commit 361c30e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/core/src/redpiler/backend/direct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ impl TickScheduler {
}

fn queues_this_tick(&mut self) -> Queues {
self.pos = (self.pos + 1) & 15;
mem::take(&mut self.queues_deque[self.pos])
}

Expand All @@ -281,8 +282,6 @@ impl TickScheduler {
queue.clear();
}
self.queues_deque[self.pos] = queues;

self.pos = (self.pos + 1) & 15;
}

fn priorities() -> [TickPriority; Self::NUM_PRIORITIES] {
Expand Down

0 comments on commit 361c30e

Please sign in to comment.