UkoeHB / renet2

Server/Client network library for multiplayer games with authentication and connection management made with Rust. Forked from renet.
Apache License 2.0
18 stars 3 forks source link

Optimize RenetServer receive_message #3

Open UkoeHB opened 7 months ago

UkoeHB commented 7 months ago

RenetServer::receive_message() requires a HashMap lookup every time it is called in order to find the specific client. Instead it should return an iterator that drains messages from that client.