PocketMine-MP icon indicating copy to clipboard operation
PocketMine-MP copied to clipboard

Variable chunk send rate based on available bandwidth

Open dktapps opened this issue 1 year ago • 0 comments

Description

This requires pmmp/RakLib#32.

Currently, we send chunks to clients at a fixed rate of 4 per tick.

While this works mostly fine, we have to be mindful of the lowest-end connections around when adjusting it. This means that the send rate of terrain is dictated by the worst connections available.

This issue proposes turning the setting into into a max sending rate. We would need a way to know how much bandwidth clients have available, to allow throttling the send rate for specific clients with poor connections, while allowing fast connections to download the terrain as fast as possible.

Alternative methods

dktapps avatar Mar 20 '24 16:03 dktapps