Skip to content

Commit

Permalink
Avoid resizing costs with event_queue
Browse files Browse the repository at this point in the history
  • Loading branch information
sasial-dev authored Jan 5, 2024
1 parent d59f5e9 commit 803c9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zap/src/output/luau/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ impl<'src> ClientOutput<'src> {

for (i, ..) in self.config.fndecls.iter().enumerate() {
let id = i + 1;
self.push_line(&format!("event_queue[{id}] = {{}}"));
self.push_line(&format!("event_queue[{id}] = table.create(255)"));
}
}

Expand Down

0 comments on commit 803c9f4

Please sign in to comment.