Spelunkery

Spelunkery

80.4k Downloads

Game Chunks Load Very Slow

PolyframeX opened this issue ยท 6 comments

commented

Describe the bug:
The mod causes major lag, onto where chunks can take up to 10 seconds to load a single chunk.
image

Versions: (BEFORE SUBMITTING A BUG REPORT, make sure you have the most up-to-date versions of Spelunkery, Moonlight Lib and Supplementaries)
Minecraft version: 1.19.2
Spelunkery version: 0.1.13
Moonlight Lib version: 2.2.19
Fabric API / QSL / Forge version: 0.75.1

Other mods:
Sodium 0.4.4

Logs:
https://pastebin.com/9sWAMaCN

To Reproduce:
Steps to reproduce the behavior. Format it as a numbered list of steps.

  1. Download Fabric, Preferably 1.19.2
  2. Download Spelunkery w/ Dependencies
  3. Load A Normal Minecraft World

Expected behavior:
Game Should Load Minecraft Chunks Fast And Normal

commented

I've also been getting generation lag, but just looking at the console for me, it would seem it might be because the game is trying to place features in faraway unloaded chunks and is erroring.
ksnip_20230319-185129

commented

those error messages are unrelated to the chunk lag. The lag has been fixed in the dev version and will be available in the next released version

commented

The main reason I am posting this as an issue, is not because it effects single player, if anything its not that noticeable, the issue is the performance is even worse on servers with more than 1 person. Sometimes even completely unplayable.

commented

I know this is a known issue, but I experienced this too and I found the root cause. It looks like FastNoiseLite.GetNoise()(lol) is mainly causing the performance drop, along with minecraft's LevelReader.getBiome().
image
Here's a spark profile of the offenders. Hope this helps, I like the mod!

commented

Yeah I was having this issue on my server too. Although I couldn't get a spark profiler to give much info, I made a replica server and used chunky to keep generating the same seed, so I had a constant to test against.
Just the plain fabric 1.19.2 install with no mods would generate 35 chunks per second. With all my mods, that dropped to 9 - 12 chunks per second. Once I disabled spelunkery's worldgen in the config, it jumped up to 19-24 chunks per second.

commented

fixed for 0.2.0