DH not wanting to load chunks

Im playing Distant Horizons 1.21 and my preformance drops intensely when I turn on DH, like maybe 120fps with shaders and without shaders its around 30, and thats with the graphics on DH to Minimal, and im in singleplayer and whenever im out of my Render Distance (Vanilla) the LODs just unload, like regular render distance, but at the cost of preformance, why is this happening and why is my preformance so bad here?
No description
50 Replies
Mark Ig
Mark IgOP5mo ago
when I go further away
No description
Yeshi
Yeshi5mo ago
how much memory did you allocate and what's your cpu usage looking like in task manager?
Mark Ig
Mark IgOP5mo ago
CPU around 60% usage it seems and I allocated 6GB and more recently 7GB to see if something would change Preformanc improves when im not loading much (standing still)
Yeshi
Yeshi5mo ago
is your total system memory usage high?
Mark Ig
Mark IgOP5mo ago
have not checked that in awhile actually give me a minute
Yeshi
Yeshi5mo ago
usually lag like this is caused by high memory usage or the cpu being overloaded
Mark Ig
Mark IgOP5mo ago
I have around 70gb free
Yeshi
Yeshi5mo ago
memory as in ram, not storage
Mark Ig
Mark IgOP5mo ago
oh well my RAM is 16 and Minecraft using 7, in task manager it says around 93%
Yeshi
Yeshi5mo ago
that could be why. try allocating 5gb to minecraft and reducing the cpu load to low impact generation will be slow but your fps won't suffer
Mark Ig
Mark IgOP5mo ago
alright, but what do I do about when moving away LODs just unload themselves?
Yeshi
Yeshi5mo ago
shouldn't happen if the mod is performing as expected it was probably just overloaded
Yeshi
Yeshi5mo ago
while you're at it install https://modrinth.com/mod/noisium if you haven't already
Modrinth
Noisium - Minecraft Mod
Optimises worldgen performance for a better gameplay experience.
Mark Ig
Mark IgOP5mo ago
got that installed
Yeshi
Yeshi5mo ago
decent worldgen performance improvement ah nice if you have c2me you should remove that because it hurts DH's distant generation performance
Mark Ig
Mark IgOP5mo ago
oooh that could be it
Yeshi
Yeshi5mo ago
also a note on chunky, /chunky
YAGPDB.xyz
YAGPDB.xyz5mo ago
Chunky is known to cause LODs to turn into swiss cheese and bloat up world size, as can be seen in the attached screenshot. We recommend you enable "Distant Generation" in Distant Horizons' settings and wait. If you actually want to pre-generate vanilla chunks along with LOD data, disable Distant Horizons, wait for chunky to finish, then re-enable Distant Horizons.
Mark Ig
Mark IgOP5mo ago
yeaaa thats what im seeing tons of isolated chunks
Yeshi
Yeshi5mo ago
your best bet if you want to preload a bunch of LODs is to afk overnight with the cpu load preset at aggressive when the cpu load is at aggressive you should allocate a bit more (maybe 8 ish gb) and close everything else so your system doesn't run low on total memory
Mark Ig
Mark IgOP5mo ago
let me remove Chunky, C2ME and lower RAM usage and see if it improves yea I usually only have 1-2 applications open, weird thing is that my RAM is 16gb but everything else uses around only 1gb, but my Memory usage is 16 my backgroud stuff isnt that much
Yeshi
Yeshi5mo ago
if you have a browser open that's probably eating a good chunk of memory as well
Yeshi
Yeshi5mo ago
1 youtube tab and i'm losing 600mb personally
No description
Yeshi
Yeshi5mo ago
it's crazy
Mark Ig
Mark IgOP5mo ago
yea always takes like 1gb for me one last question, how many CPU cores should I allocate to DH if my CPU has 8? Also what you said helped a lot, my preformance almost 100 with shaders also should DH take a very long time to load LODs? like i can be in a world standing still for like 30 minutes and its still just my regular render distance, and now it wont load any LODs at all it seems
Mark Ig
Mark IgOP5mo ago
says I got mod enabled
No description
Yeshi
Yeshi5mo ago
stick to the low impact cpu load preset if you're playing, stick to aggressive if you're afking does this happen without shaders as well? if not, /shadersupport
YAGPDB.xyz
YAGPDB.xyz5mo ago
Distant Horizons and Iris Shader Support Requirements: - Minecraft 1.20.1, 1.20.4, 1.20.6, 1.21 - Sodium 0.5.8 or above - Iris 1.7.0 or above - Indium version 1.0.30 or above - Fabric API (latest version) - Distant Horizons version 2.1.0 or higher - Compatible Shaderpack: https://gist.github.com/Steveplays28/52db568f297ded527da56dbe6deeec0e
Gist
Distant Horizons shader compatibility info
Distant Horizons shader compatibility info. GitHub Gist: instantly share code, notes, and snippets.
Mark Ig
Mark IgOP5mo ago
yea seems to be shaders let me see seems to be working now (using different shader from Github), and LODs are loading, pretty fast as well
Mark Ig
Mark IgOP5mo ago
No description
Mark Ig
Mark IgOP5mo ago
seems to have a lil issues though
Mark Ig
Mark IgOP5mo ago
No description
Mark Ig
Mark IgOP5mo ago
random unloaded chunks
Mark Ig
Mark IgOP5mo ago
No description
Yeshi
Yeshi5mo ago
Rejoining the world usually fixes that
Mark Ig
Mark IgOP5mo ago
LODs save when leaving/rejoining worlds? also if my LOD distance is like the default 128, if I let my PC on it will load all 128 LODs or more?
Yeshi
Yeshi5mo ago
It'll load up to 128 chunks yes LODs are saved to a file /lodstored
YAGPDB.xyz
YAGPDB.xyz5mo ago
Single Player: - Overworld: .minecraft/saves/WORLD_NAME/data/DistantHorizons.sqlite - Nether: .minecraft/saves/WORLD_NAME/DIM-1/data/DistantHorizons.sqlite - End: .minecraft/saves/WORLD_NAME/DIM1/data/DistantHorizons.sqlite - Custom Dimensions: .minecraft/saves/WORLD_NAME/DIMENSION_FOLDER/data/DistantHorizons.sqlite Multiplayer: - .minecraft/Distant_Horizons_server_data/SERVER_NAME/
Yeshi
Yeshi5mo ago
But if you're AFKing overnight or smth crank it to 512 or so It'll take about 8gb on disk and on my Ryzen 7600 takes around 24 hours to finish (I paid for the whole CPU preset)
Mark Ig
Mark IgOP5mo ago
the problem is I lowered my RAM but now my memory in game is reaching 100% and when it does it just gives a lag spike
Yeshi
Yeshi5mo ago
That's Java's garbage collector running
Mark Ig
Mark IgOP5mo ago
any mods you know that can help with that?
Yeshi
Yeshi5mo ago
Can't do much about it, could try switching to ZGC as your garbage collector but that's a bit of an involved process When you're actually playing I reckon your best bet is allocating 5gb ish and using the low impact preset The less you allocate the smaller the spikes will be
Mark Ig
Mark IgOP5mo ago
for me the lower i allocate it the more frequent the spikes are though don't know what to do
Mark Ig
Mark IgOP5mo ago
it lag spikes around here
No description
Yeshi
Yeshi5mo ago
GC spikes are unavoidable, you just have to find the sweet spot between how long those spikes are and how often they happen. It'll lag far more frequently when distant generation is enabled because worldgen is memory hungry
Mark Ig
Mark IgOP5mo ago
yea alright well ima mess around with that type of stuff to try to get the best preformance, thank you so much for your time to help, appreciate it a lot, in case i get a issue while looking at some settings ill not close post yet, or should I open a new post for the issue? again thanks for your time
Yeshi
Yeshi5mo ago
You can keep this thread open and ask here if something comes up And no problem I'm always glad to help
Miki_P98
Miki_P985mo ago
ZGC as it is parallel should not have those constant spikes, or am I missing something? Ferritecore, it reduces RAM usage a lot For smalles improvement (couple MB) try: - ModernFix - Krypton
Mark Ig
Mark IgOP5mo ago
yea I got all those, for my modpack basically (using modrinth), the first 20 mods that show up when you filter for optimization I have installed
Want results from more Discord servers?
Add your server