I host a server and play on the same computer. Specs are at bottom of my comment.
Generating new chunks causes console to send "cascading worldgen lag" errors, and then the server skips some amount of ticks usually between 2-10 seconds worth. Everything lags when generating new chunks. That lag is not my worry, it is bound to happen with 120+ mods. The tps is high enough that breaking blocks is smooth, but the mobs lag like crazy. The player's primary concern is that it is hard to fight laggy mobs. Is it possible to reduce tick lag, even with a great machine? CPU and memory usage do not look stressed on the task manager.
Hey viewer,
I host a server and play on the same computer. Specs are at bottom of my comment.
Generating new chunks causes console to send "cascading worldgen lag" errors, and then the server skips some amount of ticks usually between 2-10 seconds worth. Everything lags when generating new chunks. That lag is not my worry, it is bound to happen with 120+ mods. The tps is high enough that breaking blocks is smooth, but the mobs lag like crazy. The player's primary concern is that it is hard to fight laggy mobs. Is it possible to reduce tick lag, even with a great machine? CPU and memory usage do not look stressed on the task manager.
Steps done in an attempt to remedy tick lag:
Increase memory allocation.
Increase priority in task manager
Reduce render distance (now 10 chunks)
Increase and decrease packet size.
-Xincgc (did not seem to change anything)
===============================================================================================
Specs:
Machine hosting and playing:
Ryzen 7 2700x
RTX 2070 base 1550 mhz, boost 1950mhz, memory 2375 mhz boost.
32gb ddr4 3000
Wifi:
950Mbps down, 550Mbps up
Server software:
Maximum of 4 players on the server at a time,
123 mods <--- probably the cause for lag, but I am looking for other solutions besides remove mods.
64 bit windows + java
Startup.bat:
...-Xmx7G -Xms7G...
Solved: The start.bat file needed an additional java argument. I added -XX:MaxGCPauseMillis=25 and it reduced the tick lag quite a bit.