Best practice for preloading chunks on servers

I am running my own server via docker compose with Fabric. I created a new world and could clearly see where the chunks stopped rendering. I tried using chunky to force these chunks to render, but it didn't work. I'm wondering if it's possible to preload these chunks in order for DH to immediately have LODs. I know in the FAQ it says in multiplayer you must physically visit the locations first, but several people have suggested using something like chunky in order to achieve this, but I'm getting mixed messages. I've also heard loading a singleplayer world first, then saving the LODs, then moving the world to a server would work, but I'm not sure what that process entails or if its even possible. I've also heard of a server side fork, but don't know where to get info on this. Any information you could provide would be greatly appreciated. Thanks!
36 Replies
Puhpine
Puhpine8mo ago
Syllith
SyllithOP8mo ago
I managed to find the gitlab wiki for the server side fork, but I'm a bit confused. It says Open to LAN servers don't work yet however, the first line in the FAQ says However, this is not necessary if you don't expose MC server to the internet. Isn't a server not exposed to the internet just LAN?
Puhpine
Puhpine8mo ago
What they mean is the difference between clicking "open to lan" in your game, and running a separate minecraft server. The first is not supported, the latter is
Syllith
SyllithOP8mo ago
Ah, that's right. I forgot minecraft lets you open a server directly from the client
Puhpine
Puhpine8mo ago
So no, open to lan is not supported Aah alright
Syllith
SyllithOP8mo ago
The fork is working!
Puhpine
Puhpine8mo ago
Nice! Glad to hear!
Syllith
SyllithOP8mo ago
I do have a quick question though
Puhpine
Puhpine8mo ago
Sure
Syllith
SyllithOP8mo ago
No description
Puhpine
Puhpine8mo ago
You need to allocate more ram
Syllith
SyllithOP8mo ago
So it automatically generated out to here. I want to keep loading more, but I set the radius and nothing happened Doing that right now
Puhpine
Puhpine8mo ago
Hhmm don't know about that, might be something in the servers config or your config that is limiting you render distance What do you have the render distance set to on the client?
Syllith
SyllithOP8mo ago
32 render distance I just set ram to 24 GB I've been a bit confused as to how render distance plays into this sort of thing
Puhpine
Puhpine8mo ago
DH render distance I meant, sorry, but 32 is way too high, turn it down That's probably too much, try around 12 (although this isn't that big of an issue)
Syllith
SyllithOP8mo ago
It looks to be loading additional chunks now?
Puhpine
Puhpine8mo ago
Alright
Syllith
SyllithOP8mo ago
I assumed the radius command would determine how far out to render But maybe I ran out of ram and the LODs wouldn't create?
Puhpine
Puhpine8mo ago
The client will only request chunks from the server if those chunks are within the DH render distance Did you use chunky?
Syllith
SyllithOP8mo ago
I tried when I wasn't running the DH server fork and it didn't work. I take it that will function now?
Puhpine
Puhpine8mo ago
Maybe Not sure what exactly you're asking
Syllith
SyllithOP8mo ago
Sorry, I was referring to the /dhconfig renderDistanceRadius command
YAGPDB.xyz
YAGPDB.xyz8mo ago
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
Puhpine
Puhpine8mo ago
That is probably the max render distance from which clients can request chunks. To prevent clients from requesting chunks that are for example millions of blocks out.
Syllith
SyllithOP8mo ago
This entire thing makes no sense to me
No description
Puhpine
Puhpine8mo ago
First is version Second is if you for example break a block. The chunk will need to be updated Third is self explanatory But I don't know about the fourth
Syllith
SyllithOP8mo ago
Ah ok, the queued chunk updates makes sense. But the 4th one seems really important to tell if its rendering or not, but I just cannot comprehend it The gen tasks is fluctuating around 15 It appears that chunk rendering has stopped. I'll try increasing the dh radius more and see what changes
Puhpine
Puhpine8mo ago
Alright The more important metrics are found a bit below those in the f3 screen Like the amount of requests
Syllith
SyllithOP8mo ago
Hm, ok. So I set it higher, and I see chunks loading in slowly, but I'm not sure which one of these stats indicates completion progress:
No description
Puhpine
Puhpine8mo ago
If there are no more requests being made, it is done So it needs to generate 15 chunks more to complete In that screenshot
Syllith
SyllithOP8mo ago
Well the number of chunks continue to increase. That might be due to the rate limit?
Puhpine
Puhpine8mo ago
Hhmm, maybe the right number doesn't mean total chunks then... Like I said, I haven't used the server side fork myself so I'm not 100% sure about things
Syllith
SyllithOP8mo ago
Ah ok, well I appreciate you helping me brain storm it anyway
Puhpine
Puhpine8mo ago
Np!
Syllith
SyllithOP8mo ago
Glad to see it's utilizing my servers RAM
No description
Puhpine
Puhpine8mo ago
That's using a lotta ram
Want results from more Discord servers?
Add your server