|
|
|
|
|
by immibis
451 days ago
|
|
An interesting fact about Minecraft is that when it came out, storing the block IDs for the loaded area used up a big chunk of your computer's RAM and had to be optimized as much as possible. So it was 8 bits per block space, and when they expanded to 12 bits, they added on another array with 8 bits per 2 spaces. Now, it doesn't even use block IDs any more. It uses one whole object per block type, one pointer to one of those objects per block space, and has a lot more block types. The on-disk format stores the entire string name of the block, once per 16x16x16 region it occurs in. |
|