UkoeHB / renet2

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

More accurate packet sizes #7

Open UkoeHB opened 5 months ago

UkoeHB commented 5 months ago

Problem

Currently renet and this fork are configured to have 1300 byte payloads. However, the netcode implementation uses 1200 bytes as the max payload size (plus 17-25 bytes for the header and MAC).

This matches quinn which calls for a 1200 byte MTU. However, quinn adds additional headers. I measured around 70 bytes for clients, and 90 bytes for servers (via Wireshark).

Solution