For a project I'm remaking Minecraft's voxel blocky terran.
Currently im using a 3 key array(new Block[,,]
) and then i can reference a block using its cords like BlockList[x,y,z].BlockID
and stuff like that.
But i want infinite terrain which isn't possible with a array
. So would a List
be better for this?
Keep in mind there are ~200k blocks loaded at any given time - I am afraid of looping through each block in the list to find the block requested would be heavy on CPU.