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.

10 Replies
Try reducing the CPU load on the client and server
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
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
8gb on client, 4gb on server, using aikar's flags, i don't think gc is causing the client spikes tho
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 BDshmm 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
haha I did some hacky editing of the code and basically disabled this function
BeaconBeamRepo#getAlBeamsInBlockPosRange
, and the lagspikes disappeared
somehow created the prepared statement for that specific function was hanging my game
should I make a bug report?
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.
that could be helpful yeah