mas-bandwidth / yojimbo

A network library for client/server games written in C++
BSD 3-Clause "New" or "Revised" License
2.45k stars 238 forks source link

Sending Large Block Sizes slow #192

Closed tvanlenten closed 9 months ago

tvanlenten commented 1 year ago

Hello Glenn! Great library so far but I ran into trouble sending large amounts of data on a reliable ordered channel with block messages. I need to send a few MB of data initially and I am not really sure how to approach this. It took over 30 seconds on LAN to send only a few MB! Also apologies for opening an issue have no idea where else to ask this. Any hints in the right direction would be greatly appreciated!

Thanks!

gafferongames commented 1 year ago

Just change the configuration of the channel to have larger packet sizes, and a larger slice size. This will get the data sent down faster. -- cheers