Skip to main content
ExplainerRendering TechExplainer· 4 min read· in Technology

The Bounding Volume Hierarchy (BVH): How Ray Tracing Calculates Light Paths Without Rasterizing a Scene

To render photorealistic lighting in real time, GPUs rely on a nested-box algorithm that allows them to ignore millions of polygons per frame.

By Sergei Orlov

Graphics Engineers 35%Hardware Architects 35%Console Players 30%
Graphics Engineers
Focus on the algorithmic efficiency and time complexity of rendering.
Hardware Architects
Focus on designing dedicated silicon to accelerate specific mathematical operations.
Console Players
Focus on the end-user experience of high frame rates and visual fidelity.

Perspectives this story doesn't cover

  • Game Engine Developers
  • Independent PC Hardware Reviewers

Key terms

Bounding Volume Hierarchy (BVH)
A tree-based data structure that groups 3D objects into nested boxes to accelerate collision and intersection tests.
Ray Tracing
A rendering technique that simulates the physical behavior of light by tracing the paths of individual rays as they bounce through a digital scene.
Time Complexity
A computer science concept describing how the runtime of an algorithm increases as the amount of data it processes grows.
Rasterization
The traditional method of rendering 3D graphics by projecting 3D models onto a 2D screen and filling in the pixels, without simulating actual light paths.
Leaf Node
The bottom-most level of a tree data structure; in a BVH, the leaf nodes contain the actual geometric triangles of the 3D models.

Key points

  1. Ray tracing requires checking light paths against millions of polygons, which is too computationally expensive to do directly.
  2. A Bounding Volume Hierarchy (BVH) groups a scene's geometry into nested boxes.
  3. If a light ray misses a bounding box, the GPU instantly ignores all the polygons inside it, saving millions of calculations.
  4. Modern GPUs feature dedicated hardware cores specifically designed to traverse the BVH tree.
  5. Newer architectures, like the PS5 Pro's BVH8, use shallower, wider trees to further reduce the time it takes to calculate an intersection.

The binding constraint of ray tracing is that simulating light requires checking the path of millions of individual rays against the geometry of a 3D scene. If a modern game environment contains ten million polygons, and the camera fires one ray for every pixel on a 4K display, checking every ray against every polygon would require over 80 trillion intersection tests per frame. At 60 frames per second, that brute-force approach is a mathematical impossibility for any silicon that fits inside a console or a desktop PC.[1][3]

To solve this, graphics engineers do not attempt to calculate every intersection. Instead, they rely on an algorithmic shortcut called a Bounding Volume Hierarchy (BVH). A BVH is a tree-like data structure that groups the geometric objects of a scene into nested, conservative bounding boxes. The root node of the tree is a single massive box that encloses the entire rendered world. That box is subdivided into smaller boxes, which are subdivided again, continuing recursively until the smallest boxes—the leaf nodes—contain just a few individual triangles.[1][2]

When a GPU traces a ray of light, it does not test the ray against the scene's geometry directly. It tests the ray against the largest bounding boxes first. If the ray misses a bounding box, the hardware instantly knows it has also missed every object contained within that box. By skipping entire branches of the tree, the BVH reduces the time complexity of finding a collision from linear to logarithmic. Millions of potential polygon checks are discarded in a single mathematical step.[1][2]

By testing a ray against bounding boxes, the GPU can instantly discard geometry the ray will never hit.

This traversal process is so critical to modern rendering that chipmakers have built dedicated silicon specifically to execute it. Nvidia's RT Cores and AMD's Ray Accelerators are specialized hardware units designed to do exactly two things: rapidly navigate the BVH tree and calculate the final ray-triangle intersections at the leaf nodes. By offloading this specific, computationally heavy workload, these units free up the standard shader cores to handle texture mapping and other traditional rasterization tasks.[2]

This traversal process is so critical to modern rendering that chipmakers have built dedicated silicon specifically to execute it.

The architecture of the BVH tree itself is now evolving to match the capabilities of newer hardware. Standard implementations typically use a branching factor of four, known as BVH4, meaning each parent box contains up to four child boxes. However, the custom AMD RDNA architecture powering Sony's PlayStation 5 Pro introduces hardware support for an 8-way Bounding Volume Hierarchy, or BVH8. By doubling the number of child nodes per box, the BVH8 structure creates a shallower, wider tree.[3]

A BVH8 structure creates a shallower tree than a traditional BVH4, reducing the number of memory fetches required to find a polygon.

A shallower tree requires fewer steps to traverse from the root to the leaf nodes. For the GPU, this translates directly into fewer memory fetches and faster intersection queries. When CD Projekt Red deployed its PS5 Pro update for Cyberpunk 2077, the studio explicitly cited the new BVH8 implementation as the mechanism that allowed them to enable ray-traced reflections, shadows, and emissive lighting while maintaining playable frame rates. The hardware is simply spending less time searching the data structure.

The practical result of this algorithmic efficiency is visible in the performance metrics of the latest console titles. In recent testing of Marvel's Wolverine running on the PS5 Pro, the advanced ray tracing mode incurred a performance penalty of just 3 to 4 frames per second compared to the standard rendering mode. The console is able to handle complex global illumination and reflection calculations with a negligible hit to overall fluidity.

The push for photorealism in interactive media is not just a matter of adding more raw compute power. It is a continuous refinement of how data is organized and queried. As developers continue to optimize their BVH structures and hardware architects build wider traversal pipelines, the computational cost of simulating physical light will continue to drop, moving the industry further away from the optical illusions of rasterization.[3]

Sources

Source coverage

3 outlets

3 viewpoints surfaced

Graphics Engineers 35%Hardware Architects 35%Console Players 30%
  1. [1]Physically Based RenderingGraphics Engineers

    Bounding Volume Hierarchies

    Read on Physically Based Rendering
  2. [2]WikipediaHardware Architects

    Bounding volume hierarchy

    Read on Wikipedia
  3. [3]Factlen Editorial Team

    Synthesis by Factlen editorial team

    Read on Factlen Editorial Team

Comments

Stay informed

Every angle. Every day.

Get Technology stories with full source coverage and perspective breakdowns delivered to your inbox.