Visual client side chunk generation
Visual client side chunk generation
Does anyone know of a mod that, given the seed for example, could locally generate chunks so that they can be displayed before the server generates them?
IE if multiple people are exploring and the server's struggling to keep up, it would be awesome if the client could generate them locally and fill in the gaps locally until the server gets around to generating them proper
(Kinda like how I imagine distant horizons does it)
I don't think it's possible to generate server chunks on client live, this would make it vulnerable to different kinds of attacks and exploits.
Best way to do this would be pre-generating the world or some server side pre-generation mod
How so? The client at no point would send these chunks to the server, it would only be local and would be generated completely clientside. In my mind all that would be needed is the seed and at that point no extra communication between client and aervery is necessary
Pregenerating works but it's not perfect when travelling at high speed on a populated server, can still struggle to send down large amounts of chunks to the client, users with more powerful machines may be able to generate/load them faster than the server can
If the client generated chunks are not sent to server then this doesn't make sense to me. You can't do anything on these fake chunks and server still lags.
I would look for other solutions to make generating chunks faster
I think your idea is a good idea. You could keep the view distance low on the server to reduce the number of real chunks being generated. Clients can render whatever they want.
I think one issue would be when you approach a player structure from the outside, the client might see an unmodified world first and then the player structure would pop in and overwrite the client-side terrain. Its not a technical issue, but more a player experience concern.