Skip to content

How Open-World Games Handle Thousands of Objects

Rocks, trees, walls, loot and a hundred players: open worlds survive by drawing, loading and sending as little as possible. Here is how instancing, streaming, culling and replication strategies do it, with examples from Fortnite and Rust.

0
Rust players crossing an open field toward a distant industrial dome, with trees and rocks around them

Facepunch Studios

Fly over an open-world map and count what is on screen: thousands of trees, rocks and fences, buildings made of hundreds of pieces, loot, vehicles and other players. No game can afford to treat every one of those as a separate, fully simulated, fully networked object. The trick is to do as little work as possible for each object, and to skip most objects entirely.

That work comes in three bills. The CPU pays per object it has to prepare and submit for drawing. Memory and loading pay for everything that is resident, visible or not. The network pays for every object whose state has to reach every player. Each technique below cuts one of those bills, and the examples come from two very different games: Epic's Fortnite, built on Unreal Engine, and Facepunch's Rust, built on Unity. The engine names change, but the problems and the answers are the same.

1. Instanced Static Meshes: draw a thousand rocks as one

Every separate mesh normally means a separate draw call, and every draw call costs CPU time in the engine and the graphics driver. Ten thousand individually placed rocks can stall the render thread long before the GPU is busy.

Instancing fixes that by drawing many copies of the same mesh with the same material in one go. The engine uploads a list of per-instance transforms (plus any small per-instance data, such as a colour tint), and the GPU draws every copy from that list. In Unreal this is the Instanced Static Mesh (ISM) component: one component, one mesh, many transforms.

// In an actor's constructor: one component holds every rock instance
Rocks = CreateDefaultSubobject<UInstancedStaticMeshComponent>(TEXT("Rocks"));
Rocks->SetStaticMesh(RockMesh);

// Later (e.g. in BeginPlay or OnConstruction): add instances
for (const FTransform& Spawn : SpawnPoints)
{
    Rocks->AddInstance(Spawn);
}

Rust example. Facepunch added hardware instancing to Rust's shaders in early 2017, starting with the biome rocks. Their devblog was explicit that the change targeted CPU overhead, not the GPU. That is the classic instancing win: the GPU still draws the same triangles, but the CPU stops paying for thousands of separate submissions. Later devblogs extended instancing to foliage passes.

The catch: instances are not actors. They have no individual logic, no individual replication and limited individual interaction. That makes ISMs perfect for scenery and a poor fit for anything the player picks up or destroys, unless you write code that swaps an instance for a real actor when someone touches it.

2. Hierarchical Instanced Static Meshes: instancing that culls

A plain ISM over a whole forest has a problem: it is one big object. Traditionally, if any part of it is visible, the whole list goes to the GPU, and it shares a single level of detail decision.

The Hierarchical Instanced Static Mesh (HISM) component organises its instances into a tree of spatial clusters. Each cluster has its own bounds, so clusters behind the camera or too far away can be culled, and distant clusters can switch to lower LODs while nearby ones stay detailed. Unreal's Foliage tool is built on this: painted grass and trees live in HISM-based components.

  • Use HISM for large, spread-out sets of non-Nanite meshes: foliage, debris, fences across a landscape.
  • Use ISM for compact groups that are usually visible together, such as the modules of one building.
  • With Nanite, Nanite does its own fine-grained culling and LOD selection for each instance, so the hierarchy matters less. Recent Unreal versions lean on plain ISMs for Nanite content. Profile both on your engine version rather than assuming.

Fortnite example. When Fortnite Battle Royale moved to Unreal Engine 5.1 for Chapter 4 (December 2022), Epic noted that 5.1 added Nanite support for World Position Offset and masked materials, which let artists use Nanite on highly detailed, animated trees and foliage. The same island that once depended on hand-tuned LODs for vegetation could now push far denser instanced foliage.

3. Streaming: never load the whole world

Even perfectly instanced content still costs memory. An open world is too big to keep resident, so it is split into pieces that load as the player approaches and unload as they leave.

In Unreal Engine 5 this is World Partition. The map is stored as one world, divided at runtime into a grid of cells. Streaming sources (usually the player) load the cells within a loading range. Distant areas are represented by HLODs: cheap merged or simplified proxies built automatically from the real content, so the horizon is never empty. Data Layers let you load whole sets of content on demand, such as an event-only version of a town.

Fortnite example. Chapter 4 was the first time Fortnite Battle Royale shipped on World Partition. Epic said one of the biggest differences from the custom streaming solution used in earlier seasons was that the new system is automatic and needs much less developer time, and that the same tools (World Partition, Data Layers, Level Instances, automatic HLODs and One File Per Actor) shipped to every developer in UE 5.1. One File Per Actor matters for big teams too: each placed actor is its own file, so many artists can edit the same map without fighting over one level file.

Rust example. Most Rust servers run procedurally generated maps that change with each wipe, so the world cannot be hand-split or pre-baked in the editor. That constraint shows up again in the next section, and it is why procedural games tend to build their own runtime systems instead of relying on editor-time precomputation.

4. Culling: the cheapest object is the one you never draw

Culling is deciding, every frame, what does not need to be drawn. Open worlds stack several layers of it:

  • Frustum culling: anything outside the camera's view cone is skipped. HISM clusters make this cheap for huge instance counts.
  • Distance culling: small objects stop drawing past a set range. In Unreal, Cull Distance Volumes and per-component Max Draw Distance handle this, and LODs reduce what remains.
  • Occlusion culling: objects hidden behind hills, buildings or rocks are skipped. This is the hardest layer and the biggest win in dense areas.
  • GPU-driven culling: Nanite culls clusters of triangles on the GPU every frame, so a hidden part of a mesh costs very little even when the rest of it is on screen.

Rust example. In a December 2016 devblog, Facepunch explained that Rust had long had poor visibility culling because it could not use Unity's built-in occlusion system: that system relies on data baked in the editor, and Rust's maps are generated procedurally. Their answer was a custom runtime system that treats terrain as an occluder and supports fully dynamic occludees, so a valley full of bases stops costing anything once a hill is in the way.

The general lesson: if your world is generated, edited by players or destroyed at runtime, precomputed visibility will not save you. You need culling that works on live data.

5. Replication strategies: send less, to fewer people

In multiplayer the server has a fourth bill: deciding what each player needs to know, then sending it. The naive approach asks every replicated object, for every connected player, whether an update should be sent. Multiply 100 players by tens of thousands of objects and the server CPU becomes the bottleneck.

Fortnite example. Epic's documentation states that Fortnite Battle Royale starts each match with 100 players and about 50,000 replicated actors. That is the scale Epic built the Replication Graph for. Instead of each actor checking each connection, persistent graph nodes build replication lists that can be cached and shared between players:

  • Spatial grid nodes group actors by world cell. A player receives the lists for the cells around their view, instead of being tested against every actor.
  • Dormancy moves placed actors that rarely change into a separate list. A wall that nobody is shooting sends nothing until it takes damage, which suits a game where nearly everything can be destroyed.
  • Always-relevant nodes hold the few actors everyone needs, such as game state, without polluting other lists.
  • Per-connection nodes handle team rules, such as making sure teammates always update for each other.

Even without the Replication Graph, the same ideas are available on every Unreal actor:

// Only replicate to players within ~150 m (value is distance squared, in cm)
NetCullDistanceSquared = FMath::Square(15000.f);

// Update rarely-changing actors less often
SetNetUpdateFrequency(2.f);

// A crate that only matters when looted: go dormant...
SetNetDormancy(DORM_DormantAll);

// ...and wake it up when its state changes
FlushNetDormancy();

Rust example. Rust adds a twist: relevance is not only about performance, but also about cheating. If the server sends a player's position to everyone nearby, a wallhack can draw them through a mountain. Facepunch's answer is player server occlusion: the server checks line of sight and leaves players out of the network data when they cannot be seen. Facepunch staff described the first rollout in early 2025 as working against terrain only, on servers with around 350 players, and the March 2025 Crafting Update listed rocks and cliffs as the next additions to the occlusion grid. It does not stop cheating on its own, but data a client never receives cannot be revealed by an ESP cheat.

Distance-based relevance saves bandwidth; visibility-based relevance also protects fairness. It costs server CPU for the line-of-sight checks, which is why Rust started with a coarse terrain grid rather than every object in the world.

Putting it together

  • Instancing (ISM) cuts CPU cost for repeated meshes. Rust's rocks, Fortnite's foliage.
  • Hierarchical instancing (HISM) adds per-cluster culling and LOD so huge instance sets stay cheap.
  • Streaming keeps memory bounded: World Partition plus HLODs in Fortnite since Chapter 4.
  • Culling skips what cannot be seen, and procedural worlds like Rust's need runtime solutions.
  • Replication strategies decide what each player receives: Fortnite's Replication Graph for scale, Rust's server occlusion for scale and fairness.

None of these works alone. A forest that is instanced but never culled still floods the GPU; a city that streams perfectly but replicates every crate to every player still melts the server. Open worlds feel endless because each system quietly removes most of the world from each frame, each load and each packet.

Sources

Keep reading

Comments

0

No comments yet — be the first.

More from Game Development

See all