Server side via paper plugin performance
Hi I'm running the server side distant horizons plugin but it seems to get pretty bad performance.
It uses 3.68% of a tick with only 400 players connected. Attached a screenshot from our spark report and can provide the full report as well.
Is there any config settings I can tweak to increase performance?
Running DHS-0.8.1_for_MC-1.21.1.jar
Thanks

18 Replies
Get the latest nightly. Encode has been moved to a separate thread
Thanks I'll check that out. Is it running async / netty thread?
Just an async future
I'm curious about your server setup btw. You say "only" 400 players, but that's a very large number in my book. How are you dealing with that, and how many of those 400 are using DH?
So right now not many using DH because I just added the support this week but going to push people to start using it along with a few other client side mods we made internally.
Its like a geo-pol pvp server so downtime is pretty small like 100-200 online during the week. But the weekends / during events we have more like ~800.
Was just doing the inital testing with DH server side to see if it ran well at all. I swapped over to whatever the latest build on gitlab was and noticed zero impact now so thanks!
What kind of hardware and software do you use? Is it a single Minecraft server, or a proxied setup?
AMD Ryzen 9 9900X 12-Core Processor, its behind a velocity proxy of course but the game instance itself is only a single server.
Just running on a custom spigot version with a lot of work towards optimization. This weekend after release if I see any thing interesting in sparks from DHSupport I'll toss you over a report of it.
Cool, that's the same CPU we have in our SMP. Excited to hear how it goes
is it some kind of folia type setup? our smp struggles with far less players for context (same cpu, too)
No, its just single instance no folia / multipaper, but a paid paper fork. A lot of it comes down to the gamemode we are towny ish server so a lot of things like mob spawning etc are disabled.
@Jckf does the mod work in multipaper/foila?
The plugin does yes
Plugin*
Although on Folia it performs LOD building on the region thread, which is not good
Todo*
Hey just coming back to this. We ended up having some issues, when running with around 200-400 players we would see weird mspt spikes. I'd average like 10-20 mspt, then spike up to 100-200 for a few ticks in arow.
I couldn't really track it down to anything in DHS ;/ But after removing the plugin it got fixed. From lookg at some cpu stuff, htop/top etc at the container level it seemed like it might be related to lots of GC collects happening.
If you've seen anything like that before let me know and I can check provide somemore data where possible
Thanks for reporting back. Was that during generation, or had you pre-generated the LODs? I've pushed some (untested) changes to develop just now that should give the GC less to deal with, if you wanna be a gunnea pig
I didn’t do any pregen and it’s a 30k x 30k map with ~300 people spread out so it could just be a lot of generation.
Though at one point we did get the map fully generated I believe.

This was just from someone at like y 10k loading it in for a screenshot