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

Throttle tablist based on tps & match cycle #934

Merged
merged 1 commit into from
Nov 13, 2021
Merged

Conversation

Pablete1234
Copy link
Member

@Pablete1234 Pablete1234 commented Nov 7, 2021

Adds tablist throttling based on tps (if server is running at 19.5tps, tablist won't render more often than once every 500ms, at 19.0tps, more than once every second, etc), as well as completely throttling (the max delay of one render per 5 seconds) while the a match transfer is going on (players are being moved from match A to match B).

This should help with the lag on high playercounts on cycle, where tablist re-renders so many times, and the tablist render time is not necessarily impacted but many packets get queued up and take up to 30s to get dispatched, making everyone feel very laggy.

This has been tested and works correctly.

Signed-off-by: Pablete1234 <pabloherrerapalacio@gmail.com>
@Pablete1234 Pablete1234 added the feature New feature or request label Nov 7, 2021
@Pablete1234 Pablete1234 added the ready PR is ready to merge label Nov 12, 2021
@Electroid Electroid merged commit 77ef769 into dev Nov 13, 2021
@Electroid Electroid deleted the tablist-cooldown branch November 13, 2021 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request ready PR is ready to merge
Development

Successfully merging this pull request may close these issues.

2 participants