Extremely slow loading and high CPU usage
Hey there, I am having a strange performance issue with DH: Although the CPU usage is high at 100%, DH is loading chunks at a rate of ~<1 per second, slower than real chunk generation. DH is also set to
distantGeneratorMode = "PRE_EXISTING_ONLY"
, as I do not want it to generate unexplored chunks, which makes the slowness even more questionable.
I am testing in a single-player world, with the only generated chunks being the default spawn area.
Please let me know of any further steps to diagnose the issue.
Mod list is included in the logs: https://mclo.gs/X4WxDp217 Replies
I think you expect dh to work much faster than it actually does. Dh is not going to map a lod in the time it takes for that vanilla chunk to load.
!slowgen
World generation in general is quite slow and world gen mods can slow it down even more. If you want to speed it up:
Install Noisium, Lithium and C2ME. These mods can improve generation speed by a bit, but it will still not be fast.
Increase
To see if
CPU Load
in Distant Horizons settings for faster generation, but you will experience more lag spikes and stuttering due to heavier workload on CPU. You are not required to wait for the full generation to finish, although it is better for fps if you do.
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)Maybe? I'm not sure how heavy the task itself is meant to be, but i'd expect it to be faster
I am seeing blue boxes far away but red boxes at random intervals all around me, incl several times in the same chunk
nvm these seem to be something else? I'm not sure what im looking at exactly
Those are LoD updates
The blue and red ones on the ground is what you are looking for if want to see the generation
Performance seems better on the dedicated server, but I am seeing errors like
One of the worldgen or structure mods might be incompatible with default DH generator (if you use any)
You can try switching to FULL generation mode
!generators
- FEATURES: Complete generation of all LODs with mostly correct structures and trees. Does not save vanilla chunks, and is much faster than FULL unless C2ME is installed.
- FULL: Generates and saves both DH LODs and vanilla chunks, has 100% correct LODs, because it also saves vanilla chunks it takes the most amount of drive space. Generation speed will suck unless C2ME is installed.
- PRE-EXISTING: Generates LODs for all existing vanilla chunks.
none of those are installed, tho I am on pre-existing mode
Pretty sure "Pre-existing Only" is the slowest "generation" mode. LODs are generated only for chunks visited.
No LOD generation will happen outside of the vanilla render distance in this mode.
that is kinda what im going for, most of the map around the popular areas is already visited, and I'd like to avoid generating a huge area when travelling and such
Context of this thread has changed?
I'm still not sure I have figured out the issue, without accounting for chunk generation, how long are DH LODs supposed to take? I'm still seeing 1-2 per second max
Could it be that since it's set to pre-existing mode, DH is queueing all chunks but only processing them as they naturally generate?
With Features, the usual generation speed is about 20 to 50 chunks per second, depends on CPU preset and CPU type.
This is the most likely scenario.
I just gave it another try with features & aggressive mode