So I have been trying to make a block terrain generation game. I’m trying to make the map atleast 10K * 10K blocks but the lag is intense i have seen other people do this with sucess. I have been trying to do chunk loading with streaming enabled and some other people have told me to do this using tables and stuff like that but i cant come up with any code for it.
If the player won’t be able to modify the aleready existing terrain, you can add a density system to your map generator to avoid creating lots of blocks that won’t be seen
For the cave system you can use Perlin Worms, and then you can make a script that generates parts when the player digs a block, like Mining Simulator did, there is a tutorial for that, you can check it here
Yes. This is very helpful but players would be able to see that its only 1 layer if they glitched trough the map. Should i just do 2 layers or just 1 ?
Well I tested that out. I made a terrain invisible to the players, I played the game and the terrain was still there. (I saw the terrain by a camera part that I inserted)