Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable chunk send rate based on available bandwidth #6293

Open
dktapps opened this issue Mar 20, 2024 · 0 comments
Open

Variable chunk send rate based on available bandwidth #6293

dktapps opened this issue Mar 20, 2024 · 0 comments
Labels
Category: Network Related to the internal network architecture Performance Type: Enhancement Contributes features or other improvements to PocketMine-MP

Comments

@dktapps
Copy link
Member

dktapps commented Mar 20, 2024

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 dktapps added Category: Network Related to the internal network architecture Type: Enhancement Contributes features or other improvements to PocketMine-MP Performance labels Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Network Related to the internal network architecture Performance Type: Enhancement Contributes features or other improvements to PocketMine-MP
Projects
None yet
Development

No branches or pull requests

1 participant