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

Hopper detection causing substantial lag in server #85

Open
Radplayz opened this issue Dec 31, 2024 · 1 comment
Open

Hopper detection causing substantial lag in server #85

Radplayz opened this issue Dec 31, 2024 · 1 comment

Comments

@Radplayz
Copy link

Whenever deploying the custom discs plugin, it causes lag in the server for what I can only assume is some sort of hopper detection. Here is a screenshot of the spark profiler

firefox_6n3bos9KB9

And here is the profiler itself
https://spark.lucko.me/jq2MfZze4f

@Athar42
Copy link
Contributor

Athar42 commented Jan 25, 2025

Nah, it's a function which is run on every chunks loaded (so the more players you have (and also spread across the server), the more you are going to see this happen).

The part of the code involved here should only apply to jukeboxes, to check if a custom music disc is playing, else "stop" the jukebox but...
seeing your profiler result, it seems that it also affect other blocks and 90% of this ressource usage is in fact due to chests 😅

May need some tweaks here 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants