FPS lagspikes when connected to a DH server

I've been getting bad lagspikes when connected to a 1.21.5 fabric server running DH alongside Terralith, Tectonic, and a couple optimization mods. The lag is immediately solved when DH is removed from the client. The lagspikes still persist even when distant generation is turned off on both the client and the server. I ran a spark profiler on the client while DH rendering was off and this was the DH stuff I could find in the viewer. Was wondering if there was a way to fix this. Currently running the latest 2.3.2-b build.
No description
10 Replies
Miki_P98
Miki_P982w ago
Try reducing the CPU load on the client and server
M310N
M310NOP2w ago
Ah, reducing the CPU load on the client didn't help but reducing it on the server did But I wonder why having a large CPU load on the server actually increases the lag on the client Still getting some lagspikes too, especially when joining the server, doesn't happen in singleplayer actually yeah I'm not sure how much reducing the CPU usage actually helped
Miki_P98
Miki_P982w ago
You can also try reducing the client and/or server side bandwidth limits Also how much RAM did you allocate? What are your GC/JVM tuning flags? Also the next big DH version might bring improvements to SQL connections and compression making it a bit faster, so it might help But it will probably be at least couple month before the next release is ready
M310N
M310NOP2w ago
8gb on client, 4gb on server, using aikar's flags, i don't think gc is causing the client spikes tho
Miki_P98
Miki_P982w ago
I'm not sure what more can be done You can try disabling real-time updates and sync on login server side, that should reduce the strain a bit, especially during joining the world You can also switch compression on either or both server and client sie to LZ4, it is faster but will result in much bigger DH BDs
M310N
M310NOP2w ago
hmm alright np if its a db connection thing as spark seems to suggest i wonder why thats affecting fps and not done async or something
M310N
M310NOP7d ago
haha I did some hacky editing of the code and basically disabled this function BeaconBeamRepo#getAlBeamsInBlockPosRange, and the lagspikes disappeared
No description
M310N
M310NOP7d ago
somehow created the prepared statement for that specific function was hanging my game should I make a bug report?
M310N
M310NOP7d ago
here's the spark report for more context https://spark.lucko.me/TTwpnKZykG
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Puhpine
Puhpine7d ago
that could be helpful yeah

Did you find this page helpful?