Guide 04 / Simulation Budgets

Spend Detail Where Players Notice

A digital city never renders everything at once. Frame-time survival depends on investing triangles, shadow cascades, and AI cognition inside the player’s immediate street bubble while gracefully summarizing everything beyond the next corner.

Urban Density Breaks Naive Asset Pipelines

Rural forests repeat twenty tree archetypes across rolling hills; cities pack hundreds of bespoke signs, recessed windows, overhead wires, and articulated vehicles into a single 100-meter camera frustum. Without strict architectural instancing and streaming discipline, draw calls and shader overdraw quickly exceed 16.6 milliseconds per frame. Even with modern virtualized geometry systems like Unreal Engine 5’s Nanite and World Partition, uncontrolled material slots, transparent glass layers, and dynamic shadow-casting streetlamps will bottleneck GPU frame times.

Start every city production by separating structural kit geometry from unique storytelling landmarks. Eighty percent of a district’s facades should rely on a compact trim-sheet and tileable material library—shared brick, plaster, precast concrete, and anodized aluminum—tinted through per-instance vertex data or world-aligned grime masks. Reserve unique 4K baked texture sets solely for hero transit stations, monuments, and interactive interiors.

Crowd & Traffic Simulation: Pool the Bubble, Fake the Horizon

Real cities feel alive because people and vehicles move with purpose, yet running full pathfinding and skeletal animation for 5,000 citizens simultaneously wastes CPU threads on agents hidden behind concrete blocks. Split simulation fidelity into concentric tiers around the active camera. Within a 50-meter street bubble, spawn full ragdoll-ready skeletal pedestrians running local avoidance and crossing-signal state machines, paired with physics-driven vehicles.

From 50 to 180 meters, demote crowds to vertex-animated instanced meshes following lightweight lane splines, and strip vehicle colliders down to simple raycast suspensions. Beyond 180 meters, stop spawning individual agents altogether; let distant boulevards read as populated through animated headlight trails and sparse merged proxy silhouettes. Players feel surrounded by a living city while CPU simulation time stays bounded.

World Partition, Occlusion & Sightline Management

Urban canyons are a hidden gift for occlusion culling. Unlike open plains, a dense mid-rise block physically conceals the next three blocks from a pedestrian camera. Design your street bends and perimeter courtyard blocks to break infinite straight-line vistas except along deliberate scenic boulevards. Group far-distance architecture into merged HLOD (Hierarchical Level of Detail) clusters per city block, baking window curtains and interior depth illusions onto low-cost opaque cards so night-time skylines shine without rendering millions of indoor lights.

Practical Optimization Targets by City Scale

Pipeline Target Dense Street Cell (100 m) Streaming District Chunk (500 m) Skyline Proxy Tier (3 km+)
Unique Material Slots / Block 6 – 12 shared trim/tileable shaders 1 – 2 merged HLOD atlas materials 1 global skyline shader + fog
Glass & Storefronts Parallax interior cubemaps + dirt masks Opaque dark-glazed emissive cards Vertex-baked window grid masks
Dynamic Shadow Lights Hero sun + max 8 streetlamp shadows Zero dynamic shadows; emissive cones Additive light-shaft billboards only
Streaming Cell Footprint 80–120 MB resident textures/meshes Async background load on velocity vector Always resident (under 25 MB total)
Continue to City Design FAQs