Non-FPS lag in singleplayer modpack while generating LODs

Minecraft Version 1.20.1 Forge Version 47.4.0 Distant Horizons version 2.3.4-b-dev (I've just updated from 2.3.3-b and still having the same issues) Modlist attached as a txt file. I'm playing a slightly modified version of Integrated MC (added AE2, along with some others), which they say you shouldn't use Distant Horizons but I really want to make this work. I'm guessing I won't get a lot of help here either, but I figured I'd give it a shot. I've already changed both the alex's caves config and (as I was advised to change) the connector.json config, and performance looks good. Everything looks good. Except for when it's Loading or Generating LODs. While loading/generating LODs my FPS is great, but opening my inventory takes forever, breaking blocks takes forever, eating takes forever, picking up stuff takes forever, etc. This is why I called it non-FPS lag. I can't find anyone else having a similar issue on this discord server. Changing the CPU load doesn't affect this at all, whether I make it lower or higher (it only changes the LOD generation speed). For what it's worth, I have a Ryzen 9 5900X (12 cores), and I've tried varying amounts of RAM dedicated to it, from 9GB to 32GB (I have 64GB 3200MHz DDR4), nothing helps. Am I going to have to turn off distant generation so I don't sit paused and wait in single player every single time it needs to generate new LODs? Is there a mod incompatibility or setting I missed that will fix this? It just sucks because I can't afford to wait an 30+min when loading a world, or 5-15min randomly because it decides it needs to generate 20k new chunks.
10 Replies
Hitch
HitchOP•3mo ago
It's been made aware to me that the mod Tectonic (which is in the modpack) can slow down how fast the chunks are loaded/generated, but that still doesn't explain why I'm getting such bad non-FPS lag, and I still don't have a solution
Miki_P98
Miki_P98•3mo ago
Try reducing the DH CPU load preset
Hitch
HitchOP•3mo ago
I didn't notice a difference before, but I tried it just now and it's... mildly improved? Still laggy unfortunately, but not as bad. Should I try manually adjusting the CPU settings? Like lower runtime and threads to even lower than 3 and 0.5? So I decided to look at the actual config file, and I noticed the compression settings. The LZ4 compression looks better in almost every way compared to LZMA2? For only a 30% increase in storage usage? At least that's how I'm interpreting the "Compression Ratio". So, I went ahead and switched it to that and everything seems much smoother. Everything loads faster, everything generates faster, minimal to no lag. Maybe this means something is up with my CPU? I'll look into it. But I'm surprised LZ4 isn't recommended more frequently.
Miki_P98
Miki_P98•3mo ago
LZ4 should be ~2,18 times larger than LZMA At least according to: https://discord.com/channels/881614130614767666/882030671470657536/1384702291172397097
Skillnoob_
Skillnoob_•3mo ago
LZ4 is not worth it for the tiny speed increase
Skillnoob_
Skillnoob_•3mo ago
ignore the Stewi PR results, but you can see a comparison between LZ4 and LZMA2 there
Miki_P98
Miki_P98•3mo ago
I hope Stewi will manage to finish this PR soon 😭 The improvement is just so big!
Skillnoob_
Skillnoob_•3mo ago
iirc he said there's lots of things to rework
Miki_P98
Miki_P98•3mo ago
I know 😭

Did you find this page helpful?