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/X4WxDp2
mclo.gs
Vanilla Client Log [#X4WxDp2]
1059 lines | 6 errors
17 Replies
This Guy
This Guy2w ago
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.
Miki_P98
Miki_P982w ago
!slowgen
YAGPDB.xyz
YAGPDB.xyz2w ago
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 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)
Folf
FolfOP2w ago
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
Folf
FolfOP2w ago
Miki_P98
Miki_P982w ago
Those are LoD updates The blue and red ones on the ground is what you are looking for if want to see the generation
Folf
FolfOP2w ago
Performance seems better on the dedicated server, but I am seeing errors like
[16:09:04] [DH-World Gen Queue Thread[0]/ERROR]: Unexpected error completing world gen task at pos: [6*-71,55].
com.seibel.distanthorizons.core.util.LodUtil$AssertFailureException: Assertion failed:
Unable to find in progress generator task with position [6*-71,55]
at knot/com.seibel.distanthorizons.core.util.LodUtil.assertTrue(LodUtil.java:202) ~[DistantHorizons-2.3.4-b-1.21.8-fabric-neoforge.jar:?]
at knot/com.seibel.distanthorizons.core.generation.WorldGenerationQueue.lambda$tryStartingWorldGenTaskGroup$8(WorldGenerationQueue.java:377) ~[DistantHorizons-2.3.4-b-1.21.8-fabric-neoforge.jar:?]
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863) ~[?:?]
[16:09:04] [DH-World Gen Queue Thread[0]/ERROR]: Unexpected error completing world gen task at pos: [6*-71,55].
com.seibel.distanthorizons.core.util.LodUtil$AssertFailureException: Assertion failed:
Unable to find in progress generator task with position [6*-71,55]
at knot/com.seibel.distanthorizons.core.util.LodUtil.assertTrue(LodUtil.java:202) ~[DistantHorizons-2.3.4-b-1.21.8-fabric-neoforge.jar:?]
at knot/com.seibel.distanthorizons.core.generation.WorldGenerationQueue.lambda$tryStartingWorldGenTaskGroup$8(WorldGenerationQueue.java:377) ~[DistantHorizons-2.3.4-b-1.21.8-fabric-neoforge.jar:?]
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863) ~[?:?]
Miki_P98
Miki_P982w ago
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
YAGPDB.xyz
YAGPDB.xyz2w ago
- 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.
Folf
FolfOP2w ago
none of those are installed, tho I am on pre-existing mode
hardester
hardester2w ago
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.
Folf
FolfOP2w ago
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
hardester
hardester2w ago
Context of this thread has changed?
Folf
FolfOP2w ago
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?
hardester
hardester2w ago
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.
Folf
FolfOP2w ago
I just gave it another try with features & aggressive mode
Folf
FolfOP2w ago
It's pretty much stuck https://mclo.gs/QvlDtq7
mclo.gs
Vanilla Client Log [#QvlDtq7]
737 lines | 2 errors
No description

Did you find this page helpful?