300,000 chunks loading, 3 hours remaining? is this normal!?
just installed this mod with fabric/iris and its giving me this indication that itll take this long to load? is there something i can do to fix this?

92 Replies
totally normal
!slowgen
World generation in general is quite slow, if you want to speed it up:
Install Noisium, Lithium and C2ME(DH 2.3.0+). These mods can improve generation speed by a bit, but it will still not be fast.
Increase
CPU Load
in Distant Horizons settings for faster generation, but you will experience more lag spikes and stuttering due to heavier workload on CPU.
To see if Distant Generator
is really working or not:
1) Check CPU usage while in-game, using Aggressive
settings of CPU Load
. If CPU usage's hovering around 80-100%, the LoDs are generating in the background.
2) Go to DH settings > Advanced Options > Debug > Wireframe
, set Enable Debug Wireframe Rendering
and Show World Gen Queue
to True
.
Enabling both settings will show you the visualization of world gen tasks queued and working on the map (blue boxes for queued tasks, red boxes for working tasks)not only that's normal, but you're also not expected to wait for it to all load before start playing
also i now have weird ghost artifacts in my game

Place/break a few blocks in that chunk and wait
My autocomplete has learned that sentence lmao
isn't that a bug that was fixed recently?
That was a different thing
This still sometimes happens
ok placing blocks seems to have fixed that
when you do that it forces the LOD to update
and it will do so with actual world data
that's why it fixes it
if i set the generation distance to 32 for example, will this give me the default render distance while being less intensive on my pc compared to just maxing out the render distance normally?
you mean, if for example, you set the DH render distance to 32, and your regular render distance to something much smaller like 8?
then yes, DH rendering is a lot more lightweight that's the whole idea behind it
ok so if i just want to see a bit further i can put the DH render to something more reasonable like 32-64 and turn my actual render distance down
yeah
usually 8-12 chunks of regular render distance is recommended for dh
no more than 12 tho
DH isn't a performance mod but you can sorta use it as a performance mod if you want a lot of render distance and have a weak gpu, if you set the DH render distance between 32 and 64 or so, and then the vanilla render distance to something tiny like 6 or so
the real challenge with DH is cpu usage, dh has several tasks besides just rendering the LODs
using DH for render distances such as 64 is not really recommended, there's no point
the further you render, the less DHs terrain will have a effect on fps, hence the LODs
huh? but increasing the DH render takes significantly longer to load
I'd use 128 as a minimum, but 256 won't make a huge difference
.
you can still play while it loads
disable the message in the DH main settings page and play
it loads in the background
see this if you want to speed it up
but if it takes 3 hours to load at 256 its kind of pointless unless i plan on playing for 3 hours and at the end of it want an incredible view?
it won't waste those hours it spent generating it
it stores the LOD data in a file
the LODs don't pop in once its done generating, its done gradually and shows them as they are being generated
so when you join the world again it loads from the file which is fast
instead of generating from scratch
so youre saying if i set the render to something big like 256, everytime i quit minecraft and load it up again it will be 256 render immediately? assuming i dont move
not immediatly, but it will load a lot faster, at most maybe a few minutes
well it's not instant, but it's like, instead of 3 hours it would be like, 3 minutes
and you can move when its doing that
DH doesn't require you to stand still
you can just begin playing
ok and how do i toggle the message saying the chunks loaded and time remaining
in the main dh settings page is a toggle for that
show gen % progress or something like that
!config
To edit the config, press the button next to the FOV slider to edit the config.
The config file found in .minecraft/config/DistantHorizons.toml
sweet
thank you very much guys
very helpful
sorry one last thing, just a thought, if the DH render is gigantic, is there any reason to have the default render to anything other than the minimum? you guys say to have it no more than 12, why not turn it all the way down to 2?
try it and you'll see why
dh rendering is too undetailed to be so close to you
once DH renders all the chunks will things in the distance still look undetailed like this?

or will it have actual clarity
no
dh render is always undetailed like that
it's the whole point of the mod
it lowers the detail more and more as the distance increases so it is feasible to render it, and you can see far out still
i see, do you know what the limiting factor is for having a high regular render distance? if im stuttering at say 20 render distance but im fine at 12, if i allocate more ram would that help?
the stuttering is usually due to the background tasks DH does, nothing related to rendering/gpu
allocating more ram could help or it could do a whole lot of nothing
depends on how many threads you have and how much you already allocated
if the game is stuttery/choppy try reducing the cpu load
the balanced cpu preset is 50% of your threads
low impact is 25%, aggressive is 75% and i paid... is 100%, minimal impact is 10%
i only ask because before i installed DH, i was getting stuttering on high render distances. after installing DH i increased the allocated ram from 2 to 4 and now i am able to run a render distance of 20 with DH render at 256 and everything is running smooth
render distance itself won't dictate whether you'll sutter or not
rendering is a gpu process
also, vanilla render distance above 12 is not advised with DH
why?
because it starts getting too intensive
on top of DH's rendering
adds more cpu work too when you start moving
hmm
when DH finishes loading chunks does the cpu usage go down?
im at 100% cpu usage whether im at 12 render or 20 render
but im still loading DH chunks
yes, because generating LODs is the most intensive task it has
if it is not set to the max cpu load, something else is taking the rest of the cpu power
in that case you may wanna lower it
also
just moving causes cpu usage spikes, in minecraft in general
and if your fps is way higher than you'd need it to be, capping the fps helps a lot too
i want to test some things, if i uninstall DH do all the LODs go with it?
no
!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/
Server Mod
- Overworld: SERVER_FOLDER/world/data/DistantHorizons.sqlite
- Nether: SERVER_FOLDER/world/DIM-1/data/DistantHorizons.sqlite
- End: SERVER_FOLDER/world/DIM1/data/DistantHorizons.sqlite
- Custom Dimensions: SERVER_FOLDER/world/DIMENSION_FOLDER/data/DistantHorizons.sqlite
Server Plugin
All dimensions in one file: SERVER_FOLDER/plugins/DHSupport/data.sqlite
NOTE:
Sometimes there might be 2 additional files next to the main one with extensions .sqlite-wal
and .sqlite-shm
If there are, all 3 should be treated as a single file, a.k.a. moved, deleted, backed-up always together!
If you don't, the database will become corrupted.oh it looks like the DH data is only in the kb range anyway
so not alot of space
wait what
nanananah that aint right
it's usually way bigger than that

that's for the end
were you in the end? you were mostly in the overworld didn't you
oh my b lol

yeah that's the real stuff
how would i go about doing a complete uninstall?
just delete the mod, the config, and those three DH sqlite databases
so remove the DH jar from the mods folder, then in the saves folder manually delete the 3 Sqlites from every dimension
where is the config?
config/DistantHorizon.toml
ah got it
also
since DH is rendering everything in a massive radius at low resolution, when i actually get close enough to something, is the rendering process easier because things are also kind of half rendered?
cause its kind of crazy that without DH i was stuttering on 20 render but with DH and 20 render everything is running smooth
well it won't really change how much gpu stress you're getting, because when you move, the LODs that were close to you turn down in detail, and the ones that were farther from you go up in detail
this it will raise and lower detail as you get closer or far away
be noted that this process also isn't instant
if vanilla rendering at 20 was causing stutters, vanilla render at 20 with DH on top of that, would cause 10x the stuttering, this doesn't make sense
DH doesn't touch vanilla renderer, it adds a whole new kind of rendering, after the vanilla renderer ends
this is why it isn't a performance mod, a performance mod doesn't really add anything, but makes existing stuff run better
just ininstalled DH and everything is still running smooth, maybe because i allocated more ram?
but you said rendering was a gpu thing
yeah as soon as stuff loads in the cpu is gonna be chill
rendering is just drawing stuff on the screen
no idea whats happening lol, im using photon shaders with iris and it normally runs smooth but id occasional get stutter so bad the game was unplayable, thought id try the DH mod so i can see more with lower vanilla render
oh right
you see, what dh helps with, is adding a type of rendering that goes really, reeeeaaally far out, and is still feasible for the gpu to run
when the gpu struggles, normally what you get is your fps gets lower, with maybe some choppiness at most
full-on stutters is gonna be a memory thing or a cpu thing
which is something DH won't help with
would probably make it worse actually
but you should try to investigate what's going on when you get those stutters
from what you describe, if full on stutters is a memory thing, then allocating more ram must have solved the issue
possibly, yes
but usually it's also a cpu thing
in most games it is a cpu thing
but java is weird with memory too
you allocate too little, you get stutters, you allocate too much, you get stutters
there's a different memory garbage collector you can try that would reduce max fps but would make it less stuttery, that can help when the issue is the garbage collection and not insufficient memory allocation
ill look into that if the issue persists, for now it seems just adding more ram fixed the stutters
just reinstalled DH too
what was the thing that made the chunks load faster?
uh, a mod?
c2me?
at the very start of this convo you mentioned something that can help with the 300000 chunks and 3 hour loading time
that wasn't me, but noisium, lithium, and c2me can slightly speed it up
but again, for the billionth time, you dont need to care about the estimated time, you don't need to wait for it
i know but it would be nice to speed up the loading so i can reduce cpu stress asap
then just reduce the cpu load
because waiting for it to finish so you can have enough cpu to play the game is not feasible
what cpu you got?
ill check in a minute away from pc atm
and speeding it up, will just, speed it up, not reduce cpu stress, and it would still take hours
i have an intel(R) Core(TM) i7-9700
seems to be performing as expected
sure is better than mine
on balanced i get some choppyness and on low impact is a lot smoother, not perfectly smooth, but good still
but i have other tricks under my sleeve so, this isn't a fair comparison
see if on low impact, you can play comfortably while DH is generating more stuff in the background
one sec i wanna test something
just uninstalled it again. with a vanilla render of 20, my cpu usage is at about 40=50%. with DH installed and loading chunks, its at 95-100% constantly.
im assuming this is because its loading hundreds of thousands of chunks initially
but once that process is complete, will the cpu usage drop to something more normal?
that cpu usage would also drop even further than that, when it would be done
because the game running on almost idle is not gonna use 50% of that cpu
also
right as you load in to a world with dh
it's normal to see the cpu usage at 100% for a minute or so
even if it is at low impact
when my vanilla render is maxed out at 32, i get about 40-50% cpu usage standing still and it increases to around 70-80% when i move
no lag, no stutter
i do like the DH mod but if its gonna put my cpu at 100% constantly
maybe its not worth using
again, is it only at 100% because its trying to load the initial 300k chunks?
did you tune back the render distance to 8 - 12 when trying with dh?
yea i lowered it down to 12
only if you set the cpu preset to the highest, the default balanced preset will use 50% of the threads, so that's 50% usage plus whatever else the game may be doing
this initial 100% usage is even more apparent if you've been deleting the database file for each trial
ill try it again tomorrow cuz ive gtg soon
but thank you so much for all the help
youre amazing dude
capping the fps helps too
hey, im back
so about the cpu usage
when using the balanced preset, my cpu usage is between 90-100% constantly
this lines up with what you said earlier, if the balanced preset is using 50% of the threads, when i checked my cpu usage with DH uninstalled, my cpu was using 40-50% to simply run the game
lowering the preset to minimal or low lowers the cpu usage dramatically to something more sustainable, but terrain takes far too long to load in
could i leave my pc on overnight to generate chunks and then lower my preset to minimal later on?
Yes
whenever i try and change the quality preset from anything other than custom, i click done and when i go back into the menu its displaying as custom again
thats a known bug, it uses the one you set, it just displays custom
can i use a chunk loader mod like chunky to speed up chunk generation?
No
!chunky
Using Chunky to pregenerate for DH is not recommended for several reasons. The first one is the swiss cheese that might show up when using chunky while DH is installed. The second reason is that it's pointless, as DH has a build in pregenerator that is better integrated than chunky:
- It saves space by only storing LODs, not normal chunks
- It is faster to use DH's pregenerator to generate the LODs than first using chunky to generate the normal chunks, and then using DH to convert the normal chunks to LODs
- It is part of DH, and therefore always/only called when DH needs it
- Chunky calculates it's radius in blocks, confusing the user if they are not aware of this
Distant Horizons' built-in LOD pregenerator is enabled by default, and can be sped up or slowed down by changing the
Cpu Load
in DH's settings, or disabled by turning off Distant Generation.
If you want to pregenerate both LODs and normal chunks, set the Distance Generator Mode to Internal Server
under Advanced, World Generator. This will of course take up quite a lot more storage space. Make sure you have C2ME installed if you want to use Internal Server, as the generation speed will be crap if you don't.
Note, this also applied to other similar pregeneration mods.If you want both LODs and Chunks, using DH generator is faster
And you avoid problems
!slowgen
World generation in general is quite slow, if you want to speed it up:
Install Noisium, Lithium and C2ME(DH 2.3.0+). These mods can improve generation speed by a bit, but it will still not be fast.
Increase
CPU Load
in Distant Horizons settings for faster generation, but you will experience more lag spikes and stuttering due to heavier workload on CPU.
To see if Distant Generator
is really working or not:
1) Check CPU usage while in-game, using Aggressive
settings of CPU Load
. If CPU usage's hovering around 80-100%, the LoDs are generating in the background.
2) Go to DH settings > Advanced Options > Debug > Wireframe
, set Enable Debug Wireframe Rendering
and Show World Gen Queue
to True
.
Enabling both settings will show you the visualization of world gen tasks queued and working on the map (blue boxes for queued tasks, red boxes for working tasks)