d99cf24400
At the end of each tick the game thread handed every player's held packets to that player's writer thread, waking each one: a system call per player, and on a busy machine often the rest of the core's time slice to the woken writer. Now the batches go to one post thread in a single send, and it wakes the writers. A packet sent to a player while its batch is still with the post thread goes the same way, so each player's packets keep their order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>