kreezxil / Lava-Dynamics

Adding Vulcanism to Minecraft via Block Update Detection (BUD)
3 stars 3 forks source link

Chunkloading/gen is slow #31

Open AechtRob opened 4 years ago

AechtRob commented 4 years ago

With the newest release of the mod lavadynamics-1.12.2-5.6.13.jar (good stuff!), for the worldgen=true option, chunk generation is very much slower than before. I guess the new way of doing world gen is ticking a lot of blocks? Is there any chance of improving performance? Or any suggestions about what approach to take in the config to reduce lag in loading chunks?

eleksploded commented 4 years ago

Hmm. I have it using the same system as dynamic generation now. I'll have to do some research. (Sorry about a late response)

AechtRob commented 4 years ago

I'm not 100% sure. It could well be my imagination. Or just the PC being a inconsistent. But for world-gen volcanoes, if I set this low then it lags, but higher seems to improve things (2500 is "higher"). I'm not sure why this is involved in world-gen at all though! Just dismiss this if it's impossible for this to affect it.

# Cooldown between trying to generate a volcano
# Min: 1
# Max: 100000
I:volcanoCooldown=2500
eleksploded commented 4 years ago

The cooldown is a count of chunks needed before a chance to spawn a volcano is run again. Since I am using the same system as dynamic generation, the cooldown is now being respected in worldgen. However, that shouldn't effect performance that much since it is just a counter.

eleksploded commented 4 years ago

It's possible the the hanging could be from writing to the storage files, in which case it would be a pc problem. Are you using a hard drive or an ssd?

AechtRob commented 4 years ago

A hard drive, but there's nothing of concern with that.

I think that my CPU does sometimes struggle with modpacks, though it's not poor by any means (Intel Core i5 4690K Processor 3.5 GHz). I'm not sure why it sometimes seems to stress out. If you like, next time I play with the mod I'll put a system monitor on and try to see whether any resource is being pushed hard for chunkloading in the absence of a volcano.

Volcanos take a while to render in when they do appear, and the chunks can stop loading in for a bit while the volcano gets created - I am pretty sure that's RAM-related though, even though I am assigning 12GB to the pack and the GPU has an additional 5GB onboard - the pack is a monster. I'm working on reducing load by other means with the pack.

eleksploded commented 4 years ago

I have noticed a lot of lag, which I'm assuming to be coming from the fire. I'm going to push a build with an option to disable the fire and we'll see if that helps.

AechtRob commented 4 years ago

Having played this plenty now, the lag comes when the world decides to generate a volcano (this is in "world gen" mode). the chunks stop loading in when it decides to spawn one, and it takes a few seconds for the volcano to spawn in in loaded chunks and then each new chunk around the perimeter take s awhile to render. I think it's just what it is.... I have the same kind of performance when a mod like Natura decides to spawn in one of its massssive world-gen redwood trees for example.

eleksploded commented 4 years ago

Ah, its would be the world processing all the blocks being placed then. There isn't much I can do about that then,