Distant Horizons resource usage goes down after time in world?
For some reason when I first join a world I'm generating DH on, my CPU and disk usage are much higher towards the start, and then start to slow down till it's only using 5% of the CPU on I Paid for the Whole CPU, and disk write is only 0.1 MB/s (from 2-3MB/s peak). I got a heap dump from spark and showed it to a modpack developer I'm currently in the Discord VC with and he said to post it here.

32 Replies
Not entirely sure if what the render thread shows what I described
But the dev I'm with did say there was an issue with DH in here. I can screenshare in the VC if needed
Forgot to mention, I'm on 1.21.4, 2.3.0b-RC2 and on Fabric
and I cannot log out of the world unless I force close in task manager for some reason
Try the nightly though I can't say if anything will change
Where do I download the nightly?

Don't see a "dev" version either
Nvm, found it
#links-n-downloads
Now it's also running out of memory, or seems to wants to...

It's giving the warning too in chat, I'm on Balanced/Agressive
It seems to be better at using more of the CPU/disk, but still going down to 0.2-0.4% after some time
Update to the latest nightly build, this was fixed yesterday.
I clicked the latest post for 1.21.4...
Reproduction steps?
I haven't been able to reproduce this yet.
Also for the memory I need a debug option enabled:
DH config -> advanced -> debug -> F3 screen -> Show Separated Object Pools = true
You may need to disable some of the other options to have enough screen space, but you should see something like this:


These are my LOD settings ^ if needed

What quality preset are you using?
the best
1 (Block) and 7 (Pixel Art)
Well as long as the game isn't crashing from running out of memory that appears to be working as expected.
For getting 0% CPU usage how have you reproduced that?
Just by leaving the game open long enough
It's not 0, but it hovers around 5%
and disk goes down to 0.1-0.2MB/s
Does this happen when generating a new world or only when using a pre-existing world?
Let me try on a fresh world
I've been stuck on loading terrain for a minute now...
Well, had to force close but it's showing up in my save, logged in fine 2nd try
On agressive

Now time to wait to see if it goes down

Still going strong
Yeah works fine, updates the sqlite files in real time too, unlike the custom map save
I can save and quit fine as well
And merges the sqlites into one file, all unlike the custom map save lol
How long did it take to see CPU usage drop?
4-5 minutes probably
I'll leave the fresh world running just incase
It is using 124GB of RAM..
Hold on, I logged into the other one maybe?
That's somewhat expected if you're using PIXEL_ART quality.
If you want, I can send you a small test map, or the tool is called Arnis if you want to select a small area and do it yourself
The latest DH RC3 build seems to have fixed the disk from ever going to 0.1MB/s for more than a short time.
Shouldn't it still be using more CPU though?
and still have to end task to save and quit world (not a big deal, but :shrug: )

Nvm, now it jumped up to 60% CPU
So I think mostly good, just can't save and quit world (unless it should take more than 3-4+ minutes)
Solution
As of the latest nightly, all issues for me have now been fixed. 👍