Stopped Pregen but server is still lagging
We stopped pregen on our server at around 70% and even though the server specs are supposedly sufficient, the server still seems to be lagging.
24 Replies
We're running DH with around 89 mods and 1-5 players online
Server is 6GB ram and is usually around 4/6 and CPU has 3 threads
What generation mode had you used for the pregen?
!generators
- FEATURES: Complete generation of all LODs with mostly correct structures and trees. Does not save vanilla chunks, and is much faster than INTERNAL_SERVER unless C2ME is installed.
- INTERNAL_SERVER: 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.
FEATURES is default
It worked now btw
Oh, I didn't choose a specific one
But now, I can see things on m yserver and my friends can't
How do I check the generator type of the server :c
You can see it in the config file
Yeah
Just found it
It's on features
Does this mean changing it to internal server will require pregenerating chunks all over again?
Lmao
For some reason, I can see the chunks but my friends can't
We're hosting on pebblehost
If you are moving around and the generation mode was default FEATURES (no vanilla chunks were saved) the vanilla generation may be what is causing the server to lag
Well, the lag actually stopped when I restarted trhe server
The only issue now is that I can see LODs but my friends can't
They have DH installed and enabled
Ask them if they see Server Has Full DH Support in F3 menu
Ah okay one second
Yes, but first delete the LODs as where LODs already are, generation will be skipped
!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.But I really don't wanna restart the generating, it took like 2 days lol
Where should it be
I don't think it says that anywhere
Ah, I checked
It doesn't say that
Not on my pc nor theirs
Could this be because I'm using the nightly version?
But doesn't make sense, why would I be able to see things and them not
So btw since it's set to features, shoudl we be setting it to features too on our client side?
Doesn’t matter, the setting only works server side, either on a dedicated server or on integrated server when in singleplayer
Ah okay
Is features fine though?
I removed the nightly version from the server
Depends on what you want
We want the server to be sending the lod files, isn't that better for performance?
But I'll have to regenerate all of these chunks again, super sad
Maybe I should switch to internal server and pregen the chunks on my own pc? idk
f you are moving around and the generation mode was default FEATURES (no vanilla chunks were saved) the vanilla generation may be what is causing the server to lag
I'm moving around now
Does this mean the lag is because of features?
Sorry if I sound too stupid lol
I'm entirely new to DH
I'm going to change the generation mode to Internal Server on the server
This is the most compatible and will generate structures correctly,
# but may cause server/simulation lag.
Does this mean it will cause this even while paused?
probably vanilla gen
if you want vanilla generation to be faster install c2me
Ah, on the server, right?
I changed the DH server setting to Internal_Server
Do I need to remove the pregened files from before?
if you want the chunks to be saved, yes
I'm confused, so I basically have to start an entirely new server with the DH server setting set to Internal_Server, right?
And make sure all of the pregenerated files from before (during Features) are deleted
Also, does this have anything to do with chunks looking awkward at spawn point?
Because I'll have to start pregenerating as soon as I can in this case
no? You only need to delete the LODs
Right