LLibrary

LLibrary

67M Downloads

LLibrary causing cascading lag on worldgen

duhadventure opened this issue · 11 comments

commented

image
LLibrary is causing cascading lag for the server and clients.

commented

LLibrary doesn't do any worldgen... What other mods do you have installed?

commented

All worldgen in Mowzie's Mobs is called through this class: https://github.com/BobMowzie/MowziesMobs/blob/1.12/src/main/java/com/bobmowzie/mowziesmobs/server/world/MowzieWorldGenerator.java

I use the structure builder for the structures themselves, but I can't imagine that's an issue.
What exactly is "cascading" worldgen lag?

commented

@BobMowzie Cascading generation refers to the generation of a chunk causing another to generate, typically caused by setting or getting blocks in neighboring chunks.

commented

LLibrary never calls getBlockState, and only calls setBlockState from the StructureBuilder... huh

commented

Alright. Think I've found the issue: the syncing BlockEntity class sends update packets to all players, forcing them to load the chunk that the TE is in.
Only weird thing is that shouldn't happen during chunk generation, so shouldn't cause that message.

EDIT: Nevermind that, Mowzie's Mobs doesn't have any classes extending BlockEntity.

commented

@duhadventure Is that the only other mod you have installed?

commented

@BobMowzie any ideas on this? Could your mod be causing generation while in the LLibrary context?

commented

I just got this issue too. Froze my game for ten seconds, and when it unfroze I had been murdered by an angry zombie. But I've got a laundry list of miscellaneous mods, from Thaumcraft to PrimitiveMobs (and Mowzie's Mobs, too, which is the reason I have LLibrary to begin with), so I'm not strictly sure that nothing's interfering.

commented

Know this is an old issue, but I am also having it, and yeah I also have a decent amount of mods installed

commented

Oh, it’s possible that my structure generation was leaking into ungenerated chunks. You’ll have to disable Barako and the Wroughtnaut in the mod config to make this stop. Though I’ve never experienced any issues around it while playing.