Eli5: How can games like minecraft or no mans sky be essentially infinite, yet take up a very small amount of storage?

1.22K views

No mans sky is like 18GB or so on my PS4, yet there are 256 galaxies and literally around 18 quintillion planets. It can be played completely offline too, so it isnt coming from some server somewhere

I understand they’re procedurally generated, so they dont even exist until you pass through that area, but even after playing for countless hours and crossing thousands of miles of landmass, the save file is still extremely small

In: 1323

32 Answers

Anonymous 0 Comments

If I asked you to create a football field sized checkerboard, you could do it without much thought or concentration. You just know the rules that one white block needs to go next to one black block and repeat until you meet the required size.

If I asked you to create a football field sized portrait of mario, you’d have to really think about the color and placement of every block such that it creates the desired output.

Games like no man’s sky just have simple rules for generating content that pulls from a set of premade assets (all games do this to one degree or another). That’s why you’ll see repeats of things just arranged in different ways or maybe a different color. It’s way easier to just follow the rules with specific ingredients – all you have to remember are the rules and then have access to the ingredients.

In reality those rules will all boil down to a seed number. Then the game does calculations with that seed number to determine various factors about the planet (in the case of no man’s sky). To recreate that planet all you need to save in your memory is the seed number, and when someone else comes back to that planet, it reads that seed number, performs the same calculations and the result is the same.

Vs. other types of games where more things are unique and placed in very particular places and ways, you need to write down the location and placement of all those items, which increases the memory required, but you get a more custom feel to the game.

You are viewing 1 out of 32 answers, click here to view all answers.