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?
50 Replies
when I go further away
how much memory did you allocate and what's your cpu usage looking like in task manager?
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)
is your total system memory usage high?
have not checked that in awhile actually give me a minute
usually lag like this is caused by high memory usage or the cpu being overloaded
I have around 70gb free
memory as in ram, not storage
oh
well my RAM is 16 and Minecraft using 7, in task manager it says around 93%
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
alright, but what do I do about when moving away LODs just unload themselves?
shouldn't happen if the mod is performing as expected
it was probably just overloaded
got that installed
decent worldgen performance improvement
ah nice
if you have c2me you should remove that because it hurts DH's distant generation performance
oooh that could be it
also a note on chunky, /chunky
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.
yeaaa
thats what im seeing
tons of isolated chunks
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
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
if you have a browser open that's probably eating a good chunk of memory as well
1 youtube tab and i'm losing 600mb personally
it's crazy
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
says I got mod enabled
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
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.
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
seems to have a lil issues though
random unloaded chunks
Rejoining the world usually fixes that
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?
It'll load up to 128 chunks yes
LODs are saved to a file
/lodstored
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/
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)
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
That's Java's garbage collector running
any mods you know that can help with that?
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
for me the lower i allocate it the more frequent the spikes are though
don't know what to do
it lag spikes around here
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
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
You can keep this thread open and ask here if something comes up
And no problem I'm always glad to help
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
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