4 ms·
I probably should have highlighted this better, but I was not talking about Minecraft in the second part of my comment. I was talking about Minetest: https://w
by Sylos 8y ago
I probably should have highlighted this better, but I was not talking about Minecraft in the second part of my comment. I was talking about Minetest:
https://www.minetest.net/ https://www.minetest.net/
Which is essentially a game engine for creating Minecraft-like games. Minecraft itself grew historically and is not state of the art anymore.
Which especially shows in the pillar chunks that you mention. Their size is 16 x 16 x world-height, meaning that the world height can only be so big (256 blocks in the case of Minecraft).
Minetest has cubic chunks, 16x16x16, which allows for virtually infinite world height, but also for loading those chunks in a much smarter way than Minecraft has it (which basically just loads chunks in a circle around the player).
When you're in a cave, for example, you don't need 400 blocks in all directions to be loaded, you just need to see the next wall. Whereas when you're standing on a mountain, you do need to be able to see all of the chunks that make up the surface of the surrounding terrain, but you again don't need any blocks to be loaded below the surface.
And for that, I assume they use a raytracing approach. Periodically check what chunks are in line of sight for the player and make sure those are loaded. When on a mountain, that's a lot of chunks, when in a cave, it'll only be a few.
So, I'm not talking about whether they are rendered or not, I'm talking about them being loaded into RAM or not (which obviously does also result in them not being rendered when they're not loaded).