Always sync all LODs while disabling distant generation on a server.

Hi, can someone help me with the set of commands I have to run on my server to get this to work the way I want? I have preloaded 256 chunks, I want clients to connect and it to sync all LODs to their client. What I don't want is them to go somewhere the server hasn't preloaded, and the CPU usage to spike because it's trying to generate distant chunks that haven't been generated yet.

For example, I haven't done anything with the nether yet. As soon as I start running in one direction, the spikes because it's generating LODs 256 blocks away, BUT I still want it to generate pre-existing LODs.

I changed generation mode to PRE_EXISTING_ONLY without realizing that it only generates chunks the server has loaded. I also tried turning realtimeupdates off and reducing the realtimeupdateDistance but it doesn't seem to sync far away chunks.
Solution
I understand the first part, and disabling distant generation would be the solution. But I don't understand the second part.
Was this page helpful?