Skip to content

Fix chunk loading/sending when the rate is set to 1.0#8834

Closed
MartijnMuijsers wants to merge 1 commit into
PaperMC:masterfrom
MartijnMuijsers:fix/chunk-loading-rates-of-one
Closed

Fix chunk loading/sending when the rate is set to 1.0#8834
MartijnMuijsers wants to merge 1 commit into
PaperMC:masterfrom
MartijnMuijsers:fix/chunk-loading-rates-of-one

Conversation

@MartijnMuijsers
Copy link
Copy Markdown
Contributor

Fixes #6616.

This allows the following paper-global.yml configuration values:

  • global-max-concurrent-loads can be set to 1.0 and higher
    (previously could only be set to strictly higher than 1.0)
  • target-player-chunk-send-rate and global-max-chunk-send-rate can be set to 10-3 (1 chunk per 1000 seconds, a value that is safe and lower than anyone could ever need) and higher
    (previously could only be set to strictly higher than 1.0)

@MartijnMuijsers MartijnMuijsers requested a review from a team as a code owner February 9, 2023 11:32
@MartijnMuijsers MartijnMuijsers force-pushed the fix/chunk-loading-rates-of-one branch 2 times, most recently from ddadb88 to 200ab33 Compare February 9, 2023 11:35
@Warriorrrr
Copy link
Copy Markdown
Member

This doesn't seem to be needed anymore actually, the max rate is only used if the value in the config is less than 0.0, which means 1.0 will work fine now.

@MartijnMuijsers
Copy link
Copy Markdown
Contributor Author

In addition, the rate used to be in chunks/tick, so that the minimum was 20 chunks/second, which is quite high for a minimum settable bound. Now, the rate is in chunks/second, so that the minimum is 1 chunk/second, which I also expect to be low enough to cover all environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

Setting target-player-chunk-send-rate to 1.0 disables the limit

3 participants