I have tried several different allocated ram options, several different render distance options, and different versions of Minecraft including regular and fabric. The issue always occurs. While walking, the chunks load in normally. When moving faster such as flying with commands or with an elytra, the chunks no longer keep up. If I keep going the game will teleport me back, and I get a message saying the server is behind by a certain amount of ticks. Nothing in the game lags. The mobs, weather, block breaking, and opening containers are all normal. It’s just generating new chunks. I have lithium for frabic installed and that does seem to help. My RAM never exceeds 3 GB and my CPU utilization tends to hover around 30%. Whenever I go outside the loaded chucks though, my CPU will randomly spike to 150% before the teleport. Is this as simple as weak CPU or too slow hard drive? I would love to try more options if possible.
Reproduction Steps
Launch server
Fly with commands or elytra
Eventually game will say I’m going too fast and that the server is behind
Yeah that’s standard with modern MC, given the game is mostly singlethreaded (by that, I mean everything important more or less runs on the same thread).
First sanity check would be to see if the server-side render distance is reasonable (the default is 10).
Both single-threaded CPU and disk performance can impact chunkgen/chunkloading, but most often it is a CPU bound operation. You can use the Spark plugin/mod to see exactly what’s causing the issue, but from what you’ve seen you can probably chalk it up to chunkgen/loading.
You can use a plugin/mod like Chunky to pre-generate terrain, which saves the CPU from needing to do the “gen” part of things while players are exploring, at the cost of the world’s file size being much larger.
There’s also a decent list of performance mods here: https://github.com/TheUsefulLists/UsefulMods
Thank you for all of this! I went through and have been doing some testing the last two days. Chunky is really a lifesaver. Even with it though, I noticed that it was still occurring. I had no clue what the world even looked like cause it was only loading 2-3 chunks at a time. I think I have found the culprit though. I’ve been using a tunneling service called playit.gg. When I connect via the playit link, the chunks refuse to load. When I connect directly with my IP address though, the entire experience is smooth as long as I stay within loaded chunks. My guess is something to do with WiFi or a poor connection to the tunneling host. Not quite sure what the solution is from here, but at least the problem is identified.
Ah yeah didn’t think of bandwidth as being a factor there.
Tbh there isn’t really a reason to use playit when you’re able to port forward, since there’s no real benefit to hiding your IP unless you’re a public figure prone to being DDOSed