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

Optimize tnt render by ignoring afk players #1310

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Optimize tnt render by ignoring afk players #1310

merged 2 commits into from
Apr 23, 2024

Conversation

Pablete1234
Copy link
Member

Adds an afk tracker into pgm, and TNT render module uses it to determine players who have been afk for +30s to stop sending them tnt block updates. This is done in order to improve performance. A few other minor performance tweaks are included too, like avoiding creating a new immutable list of all players every time one is asked for.

In the future we could use the afk tracking to also slow down updates of tablist or scoreboard for those who are AFK, in order to further improve performance.

@Pablete1234 Pablete1234 added the feature New feature or request label Mar 31, 2024
@Pablete1234 Pablete1234 requested a review from Electroid as a code owner March 31, 2024 23:48
Signed-off-by: Pablo Herrera <[email protected]>
@Pablete1234 Pablete1234 added the ready PR is ready to merge label Apr 23, 2024
@Electroid Electroid merged commit 4714177 into dev Apr 23, 2024
2 checks passed
@Electroid Electroid deleted the afk-tnt-render branch April 23, 2024 07:28
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