CustomDiscs icon indicating copy to clipboard operation
CustomDiscs copied to clipboard

Hopper detection causing substantial lag in server

Open Radplayz opened this issue 11 months ago • 1 comments

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

Radplayz avatar Dec 31 '24 02:12 Radplayz

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 😊

Athar42 avatar Jan 25 '25 19:01 Athar42