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

Take a seed 846. Now take a block 1. Block 1 gives you landscape 846. 2 gives you 846×2 and so on. If we calculated all of these we would have an infinite data set which can’t be stored on your device. But we dpnt need to calculate all of them. You calculate whichever ones actually occur. The endless blocks aren’t actually defined until you walk to a certain poiny. The seed is the function that defines how each block will be determined, but the number of blocks is endless.

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