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

Performance issues with lots of hyperboxes #30

Open
Mecr0mage opened this issue Jul 29, 2024 · 2 comments
Open

Performance issues with lots of hyperboxes #30

Mecr0mage opened this issue Jul 29, 2024 · 2 comments

Comments

@Mecr0mage
Copy link

im currently playing on a public modded server and we have been having a decent amount of TPS lag issues for a while, and while i was going around checking observable and spark for problems as i have been from time to time for a while, i noticed while checking tick usage per dimension that the overworld was actually under the 50ms threshold for when tps starts to slow down so i started looking at the other dimensions and saw that along with some of the other dimension, there were 21 hyper box dimensions all ticking on average about 1.8ms to 2.0ms. which means that hyperboles are leaving the rest of the server only about 10ms of ticking time just by existing, and with just 5 more the dimensions alone would cause the tps to start going down from just hyperboxs.

i do have two ideas on how to help with this one that i feel would be easier but not help as much and a second that would prob take a lot more effort but largely improve this issue

one, the dimensions could be made to unload when they are "inactive" which would be when the chunks inside the hyperboxes are not loaded and there are no items/entities in them or some other conditions. this would not help when the people that use hyperboxes heavily are online in a sever as they would be active tho

second is that each hyperbox is not its whole own dimension, and instead, all exist in the same "hyperbox" dimension but are spread out by some X amount of block or chunks between each structure like how AE2 does with its spatial dimensions. this would almost completely remove the loaded dimension overhead but obviously would be a completely different implementation than how the mod is now.

@Tux-Prowess
Copy link

There's a feature in the hyperbox where it would loudly echo sounds to players inside the hyperbox from anything nearby the hyperbox block. This is the source of severe server lag because all hyperboxes constantly listen for sounds being played in the vicinity of the block.

@Mecr0mage
Copy link
Author

It probably does not help, but from what I found while looking into it, a large part of the resources is coming from ticking dimensions themselves. Even if the hyperbox dimensions were not being used and not loaded, their dimensions were being checked just for existing. However, I have not checked since I made this post since I have not played with them since then, so I'm not sure if an update has fixed that by now.

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