How Do Open-World Games Load the Map as You Move?
Drive toward a city in an open-world game and the skyline might be visible long before you can read the signs on its streets. By the time you reach those streets, the game has brought in much finer detail, often without interrupting the drive. The trick is called world streaming: the game keeps the parts you are likely to need in fast working memory and brings in new pieces as you move. Distant scenery can still be visible, but it can be drawn from a simpler version of the world. Think of a city map divided into squares. Each square can have its own buildings, stretches of sidewalk, trees, and other objects. As you approach a new neighborhood, the game starts loading its squares. Once you have driven far enough away from the old neighborhood, some of its detailed content can leave working memory. Epic Games’ World Partition documentation describes an implementation that organizes a level into grid cells and uses a moving point, such as the player’s position, to decide which cells to...