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

1.75K 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

These games create their worlds “on the fly” rather than being premade.

Imagine needing to know the dimensions of your house so you can buy furniture and other things. You could either measure *everything* up front and record it on paper for future use, or you could simply know how to measure things and measure them as you need. If you put it on paper, you need to store that paper somewhere, but if you just measure when you need to, you don’t need any paper!

The tradeoff is processing time vs memory. With premade worlds, you don’t need as much CPU because all you do is pull the data from the disk and display it. With games that build stuff on the fly, it has to use a lot more CPU while you are playing the game.

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