Path tracing

On this page 7

Path tracing is a rendering technique that computes lighting by tracing many random paths of light from the camera through a scene, letting each path bounce off surfaces until it reaches a light source. In gaming graphics settings, it usually appears as full ray tracing or an RT Overdrive style mode that replaces most traditional lighting tricks with one physically based simulation.

Because a single method produces global illumination, shadows, reflections and ambient occlusion together, path tracing delivers the most consistent lighting available in real-time games. It is also the most demanding graphics setting a modern game offers, and it depends heavily on denoising and upscaling to run at playable frame rates.

How path tracing simulates light

Path tracing approximates the rendering equation, which describes how much light leaves every point of a surface. For each pixel, the renderer fires a ray from the camera, finds the first surface it hits and then chooses a random bounce direction based on the material. The process repeats until the path reaches a light, leaves the scene or hits the maximum bounce count.

Averaging many such random paths, a method called Monte Carlo integration, converges toward a physically correct image. Offline film renderers use hundreds or thousands of samples per pixel. Real-time games can afford only about one to four samples per pixel and two to four bounces, so the raw image is extremely noisy and must be cleaned by a denoiser.

The key parameters below decide both image quality and performance cost.

ParameterTypical real-time rangeWhat it affects
Samples per pixel1 to 4Noise level before denoising
Bounce count2 to 4 bouncesDepth of indirect light and color bleeding
Light sampling methodImportance sampling, ReSTIRHandling of many light sources
DenoiserTemporal and spatial filters, neural denoisersClarity, ghosting and detail retention
Internal resolution25 to 67 percent of outputCost per frame before upscaling
Main path tracing parameters in real-time games

Path tracing compared with ray tracing and rasterization

Path tracing is a form of ray tracing, but the terms are not interchangeable in graphics menus. Standard ray tracing in games is hybrid rendering: a rasterized image receives selected ray-traced effects, such as reflections or shadows, while other lighting still relies on approximations. Path tracing instead computes nearly all lighting with traced paths.

ApproachHow lighting is producedRelative cost
RasterizationProjected triangles with baked or screen-space lightingLow
Hybrid ray tracingRasterization plus one or more traced effectsMedium to high
Path tracingMulti-bounce traced paths for almost all lightingVery high
Offline path tracingThousands of samples per pixel, no time limitMinutes to hours per frame
Rendering approaches used in games

The practical difference is unification. Rasterized games combine separate techniques, such as shadow maps, screen-space reflections and ambient occlusion, which can disagree with each other and fail at screen edges. Path tracing avoids these artifacts because every effect comes from the same light simulation.

Hardware and software needed for real-time path tracing

Real-time path tracing became practical only with dedicated ray tracing hardware that accelerates intersection tests against a bounding volume hierarchy (BVH), the data structure that organizes scene geometry. Even then, playable results usually require an upscaler such as DLSS, FSR or XeSS and often frame generation.

Modern implementations rely on algorithms that reuse information across pixels and frames. ReSTIR (reservoir-based spatiotemporal importance resampling) lets a renderer handle thousands of lights with few samples, and neural denoisers such as ray reconstruction replace hand-tuned filters with a trained network.

ComponentRoleEffect if missing or weak
RT cores or ray acceleratorsAccelerate BVH traversal and intersectionsFrame rates become impractically low
DenoiserReconstructs a clean image from noisy samplesGrainy image, blotches, boiling noise
UpscalerRenders fewer pixels and reconstructs outputNative resolution cost is too high
Frame generationInserts generated frames between rendered onesLower displayed smoothness
Video memoryStores BVH, textures and history buffersStutter or reduced texture quality
Components of a real-time path tracing pipeline

When to enable path tracing

Path tracing is worth enabling when the graphics card has strong ray tracing performance and the player values visual fidelity over raw frame rate. Single-player games with slower pacing benefit most, while competitive titles favor high, stable frame rates and low input lag.

SituationRecommended choiceReason
High-end GPU, single-player gamePath tracing with upscalingBest lighting at playable frame rates
Mid-range GPUHybrid ray tracing or rasterizationPath tracing cost exceeds the budget
Competitive multiplayerPath tracing offFrame rate and latency matter more
Frame generation in useKeep the base frame rate near 60 fpsLow base rates increase perceived latency
Limited video memoryLower texture quality firstPath tracing adds memory overhead
Decision guide for path tracing settings

Limitations and visual artifacts

  • Denoiser ghosting and smearing: temporal reuse leaves trails behind moving objects, especially at low base frame rates.
  • Delayed lighting response: indirect light may take several frames to update after a light turns on or off.
  • Residual noise: dark areas lit only by indirect bounces can show shimmering or blotchy patterns.
  • Severe performance cost: path tracing can reduce native frame rates by several times compared with rasterization.
  • Art direction changes: scenes designed for rasterized lighting can look darker or different, because physically correct light is not always the intended look.

The short version

Path tracing makes a game light itself the way the real world does. The computer follows tiny beams of light as they bounce around a room. A red wall tints the floor near it. A window brightens the corner it faces. Shadows soften naturally.

The catch is the effort. Following that many bounces is enormously demanding work for a graphics card. Games therefore use clever tricks to clean up the image and fill in missing detail. The result can look close to a film, but only on powerful hardware.

Where it makes a difference

A player with a high-end graphics card and a 1440p monitor runs a story-driven city game at ultra settings with hybrid ray tracing at about 90 frames per second. Switching to the path tracing mode drops native performance to roughly 25 frames per second, which feels sluggish.

The player enables the upscaler in quality mode, turns on ray reconstruction and adds frame generation. The base frame rate rises to about 55, and the displayed rate reaches around 100. Neon signs now cast colored light onto wet streets, interiors receive realistic bounce light and reflections no longer vanish at screen edges. The outcome is a clearly more realistic image at a smooth frame rate, with a small increase in input latency that matters little in a single-player game.