Skip to content

Real-Time Ray Tracing vs Rasterization: Rendering Compared

Real-time ray tracing computes per-pixel light physics; rasterization projects triangles for speed. Compare hybrid rendering, denoising, and DirectX Raytracing.

Comparison card: Real-Time Ray Tracing vs Rasterization: Rendering Compared

Real-time ray tracing is a rendering technique that simulates physical light transport by casting rays from a virtual camera into a scene and computing per-pixel illumination, shadows, and reflections against scene geometry. The performance cost of that physical accuracy, and the engineering choices developers make to manage it, define the central trade-off in modern game graphics.

What Ray Tracing Is and How It Differs From Rasterization

Ray tracing and rasterization are the two dominant rendering pipelines in game graphics, and they solve the same core problem (producing a pixel-by-pixel image of a 3D scene) through fundamentally different computational strategies. Rasterization projects scene triangles onto a 2D plane and approximates lighting with screen-space techniques; the RT approach inverts the process by casting rays from the camera into the scene and computing physically accurate intersections at each surface. The two standardized API paths for hardware-accelerated real-time RT rendering are DirectX Raytracing (DXR) on Windows and Vulkan RT as the cross-platform alternative. According to the Microsoft DirectX Raytracing announcement, DXR opens a class of rendering techniques that rasterization cannot achieve. The Unity vs Unreal Engine for VR Games comparison covers how these rendering pipeline choices surface at the engine-selection level.

AttributeRasterizationReal-Time Ray Tracing
Lighting modelScreen-space approximations (SSAO, shadow maps, SSR)Physically based per-pixel light transport
Shadow methodShadow maps (resolution and bias artifacts)Per-pixel shadow rays; no map resolution limit
Reflection methodScreen-space reflections; misses off-screen geometryPer-pixel reflection rays; captures full scene
Primary use caseHigh frame rate, broad hardware supportCinematic fidelity, physically accurate effects
GPU hardware requirementAny modern DirectX 11 or Vulkan-capable GPUDedicated hardware ray tracing acceleration units
Typical frame rateHigher; less compute per frameLower without hybrid rendering and denoising
API supportDirectX 11/12, Vulkan, Metal, OpenGLDirectX Raytracing (DXR), Vulkan RT

How Rasterization Builds a Frame

Rasterization builds a frame by transforming every visible triangle in a scene from 3D world coordinates into 2D screen coordinates, then filling each projected triangle with shaded pixels. The rendering pipeline moves through four discrete stages before producing a final pixel output. As NVIDIA Ray Tracing Essentials: rasterization versus ray tracing documents, rasterization has been the dominant method for rendering 3D images at interactive rates for decades.

  1. Vertex transformation via vertex shader: Each mesh vertex is multiplied by model, view, and projection matrices, converting 3D world positions into normalized device coordinates on the 2D screen plane.
  2. Triangle clipping and rasterization: Triangles extending beyond the viewport are clipped; the rasterizer then fills each projected triangle with fragment candidates, one per covered screen pixel.
  3. Fragment shader execution per pixel: The fragment shader runs once per covered pixel, sampling textures, evaluating material properties, and computing a color output from the scene's lighting data.
  4. Depth testing and blending: The depth buffer discards fragments occluded by closer geometry; the blending stage composites transparent surfaces in draw order to produce the final frame.

Rasterization relies on screen-space approximations for effects that ray-traced rendering computes directly. Screen-space ambient occlusion (SSAO) approximates contact shadow darkening by sampling nearby depth values. Screen-space reflections (SSR) mirror on-screen pixels to simulate reflective surfaces but miss any geometry outside the current view. Shadow maps store depth from each light source's point of view and alias at low resolutions, producing surface acne and Peter Panning artifacts with aggressive bias tuning. Global illumination (GI), the full simulation of indirect light bouncing across surfaces, is not tractable in real time through rasterization alone. These approximation costs are kept low enough that rasterization can sustain high frame rates on consumer GPU hardware without dedicated RT cores, which is precisely the trade-off hybrid rendering is designed to manage.

How Real-Time Ray Tracing Works

Real-time ray tracing works by casting one or more rays per pixel from a virtual camera, testing each ray against a bounding volume hierarchy (BVH) of scene geometry, and shading the nearest intersection point using physically based light transport. The BVH is a tree-structured acceleration data structure that partitions scene triangles into nested bounding volumes, allowing intersection tests to prune large portions of geometry without checking every triangle. Hardware ray tracing on NVIDIA RTX-series GPUs (RTX 20 series and later) and on compatible AMD hardware with dedicated RT support performs hardware-accelerated BVH traversal; software-only rendering on older hardware without these units cannot sustain real-time frame rates. This hardware integration context is covered in NVIDIA's guide to integrating RTX ray tracing into real-time engines. For GPU selection, the Best Graphics Card For 4K Gaming guide covers hardware tiers that include RT acceleration.

NVIDIA GeForce RTX 50 Series graphics card featuring dedicated RT Core hardware for real-time ray tracing
GeForce RTX 50 Series · Credit: NVIDIA
  1. BVH acceleration structure build: Executed on CPU or GPU at scene load; updated each frame for dynamic objects such as skinned character meshes and destructible geometry.
  2. Primary ray generation from camera: One or more rays per pixel are emitted from the virtual camera position through each screen pixel into the scene.
  3. BVH traversal and intersection test per ray: Each ray descends the BVH tree, pruning branches whose bounding volumes the ray misses, until it finds the nearest triangle intersection.
  4. Shading at the intersection point: The intersection is shaded using BRDF (Bidirectional Reflectance Distribution Function) evaluation; shadow rays are cast toward light sources and reflection rays may be cast recursively for specular surfaces.
  5. Denoising pass: Real-time budgets allow only a small number of rays per pixel rather than the much larger sample counts required for noise-free offline rendering. A denoising algorithm reconstructs the clean result from this sparse, statistically noisy input.

Denoising is the enabling technology that makes real-time ray tracing viable. The two most widely deployed denoising approaches are SVGF (Spatiotemporal Variance-Guided Filtering), which accumulates and filters variance estimates across frames using reprojection, and DLSS Super Resolution, which uses a neural network trained on high-resolution reference images to infer a clean output from sparse RT input. Without a denoising algorithm, achieving comparable image quality would require substantially more rays per pixel, making real-time frame rates impossible on current hardware. DXR is available from DX12 hardware tier 1.0 and above: tier 1.0 is the minimum entry point that enables DXR functionality, while later tiers add further capabilities beyond that entry point. The D3D12_RAYTRACING_TIER enum reference documents the full tier definitions. Vulkan ray tracing provides the cross-platform API path. The Microsoft DXR Windows 10 hardware readiness post covers DXR hardware availability and tier support in detail.

Performance Cost: Frame Rate and Hardware Trade-offs

Ray tracing carries a significant frame rate cost relative to rasterization because BVH traversal and per-pixel shading require far more memory accesses and compute operations per frame than triangle projection. Full global illumination via this method requires substantially more compute than rasterization for equivalent scene complexity, an architectural consequence of casting and shading individual light rays rather than projecting geometry linearly through a fixed pipeline. The key performance factors are:

  • Memory bandwidth demand of BVH traversal: Each ray descends a multi-level BVH tree, loading bounding volume nodes from GPU memory at each level. This produces non-sequential access patterns that exhaust cache bandwidth faster than the linear access patterns of triangle rasterization.
  • Ray coherence across screen regions: Primary camera rays are relatively coherent and cache-friendly. Shadow rays and reflection rays diverge based on scene geometry, producing incoherent access patterns that reduce effective GPU memory bandwidth and occupancy on the traversal units.
  • Sample count per pixel and noise: Fewer rays per pixel reduces compute load but raises noise level, requiring stronger denoising. A direct trade-off between frame rate and image quality before the denoising pass.
  • Shadow ray cost per light source: Every shadow ray requires a full BVH traversal. Scenes with many dynamic light sources multiply shadow ray cost proportionally; rasterization's shadow maps reuse a cached depth buffer and scale more favorably with light count.
  • Denoising pass overhead: SVGF filtering and DLSS Super Resolution each consume GPU time and memory bandwidth on top of the raw rendering workload. DLSS shifts some of this cost to Tensor Cores, reducing the shader-core burden.

Hybrid rendering resolves this trade-off for shipping titles. Developers enable the technique only for effects that produce the greatest perceptual gain at the lowest per-frame cost. Ray-traced shadows eliminate shadow map aliasing and Peter Panning. Ray-traced reflections capture off-screen objects and correct self-reflections that SSR cannot reproduce. RT ambient occlusion produces accurate contact shadowing without SSAO halo artifacts. Ray-traced global illumination, which computes full indirect lighting via path tracing, is the highest-quality and highest-cost option; shipping implementations typically restrict it to a single low-sample GI pass with aggressive denoising. The NVIDIA Ray Tracing Gems: hybrid rendering approaches documents the performance rationale for this selective approach.

Hybrid Rendering: Rasterization With Ray-Traced Effects

Hybrid rendering combines rasterization for the base geometry pass with selectively ray-traced effects for the lighting and reflection components that benefit most from physically accurate computation. The rasterizer handles triangle projection and fragment shading at full throughput; RT passes replace or augment the screen-space approximations that rasterization cannot compute correctly. As NVIDIA Ray Tracing Essentials: rasterization versus ray tracing states, rasterization and RT complement each other and are usually used together in hybrid approaches to achieve high-quality real-time results. The Best Game Development Engine For Beginners guide covers engine-level choices for teams that want built-in hybrid rendering support without implementing DXR or Vulkan RT pipeline shaders from scratch.

Ray-traced shadows
Replaces shadow maps with per-pixel shadow ray tests. Each shaded pixel fires rays toward light sources; the intersection result determines shadow coverage directly. Shadow map resolution artifacts and Peter Panning disappear because there is no depth map to alias or bias.
Ray-traced reflections
Replaces screen-space reflections with per-pixel reflection rays that traverse the full BVH. Reflection rays capture geometry anywhere in the scene, including objects behind the camera and off the screen edge. Correct self-reflections on curved surfaces are only possible with full ray traversal.
Ray-traced ambient occlusion
Replaces SSAO with per-pixel hemisphere sampling. A small number of rays cast around each surface normal produce an accurate occlusion value free of the screen-space halos that SSAO generates near geometry silhouettes.
Ray-traced global illumination (GI)
Computes full indirect lighting via path tracing: rays bounce from surface to surface, accumulating radiance at each intersection. This is the highest-quality and highest-cost hybrid option. Unreal Engine's Lumen system is a production example, blending software RT for dynamic objects with hardware-accelerated RT for static scene geometry as an engine-level design choice.

Impact on Game Development Pipelines

Real-time ray tracing changes game development pipelines because BVH acceleration structures must be built and updated at runtime, which shifts geometry management responsibilities from purely offline baking workflows to per-frame dynamic updates. Lightmap baking and static shadow generation remain valid for rasterized titles, but a ray-traced rendering pipeline must maintain a valid BVH at all times during play. DirectX Raytracing (DXR) is available from DX12 hardware tier 1.0 and above, with tier 1.0 as the minimum entry point for DXR functionality and later tiers adding further capabilities. The Microsoft DirectX Raytracing announcement covers the full DXR API overview. Developers new to GPU shader programming will find foundational context in Getting Started With Game Development Programming Languages.

  • BVH build and refit cost for dynamic geometry: Skinned character meshes and destructible environment pieces require per-frame BVH refit or full rebuild when topology changes significantly. GPU time for this work must be budgeted before the primary ray generation pass begins.
  • Shader complexity from intersection and any-hit programs: DirectX Raytracing and Vulkan ray tracing expose intersection shaders for non-triangle geometry such as alpha-tested foliage, and any-hit shaders for transparent surface handling. These programs execute mid-traversal and must be kept lightweight to avoid stalling the BVH traversal unit.
  • Material system changes for BRDF-correct shading: Ray intersection points require physically based BRDF evaluation at arbitrary surface locations; material data must be addressable by the closest-hit shader at any triangle intersection, affecting texture streaming and bindless resource architecture.
  • Denoising integration and temporal stability: Temporal denoising algorithms such as SVGF accumulate samples across frames using motion vectors and reprojection. Fast camera movement or scene cuts can produce ghosting when reprojection fails; pipelines must detect and reset temporal accumulation to prevent visible artifacts.
  • Platform support matrix: DirectX Raytracing covers Windows with DX12 hardware from tier 1.0 and above; Vulkan RT covers cross-platform capable hardware. Both paths require dedicated RT acceleration units; titles targeting broad hardware must provide a rasterization fallback for hardware that exposes neither API path.

Choosing the Right Rendering Approach for Your Project

Choosing between ray tracing and rasterization depends on the target hardware tier, performance budget, and the specific visual effects the project requires. The Microsoft DXR Windows 10 hardware readiness post confirms that the technique excels in reflections, shadows, and ambient occlusion relative to rasterization, which maps directly to the decision criteria below.

  1. Target hardware: If the minimum hardware specification excludes GPUs with dedicated RT acceleration units (NVIDIA RTX-series or equivalent AMD hardware with hardware RT support), rasterization is the only viable rendering pipeline. Hardware RT acceleration is absent on integrated graphics and older discrete GPUs without dedicated RT units.
  2. Frame rate target: Titles targeting 60 fps or higher at 1080p or 4K cannot run full ray-traced global illumination without hybrid rendering and denoising. Budget for hybrid rendering from the start: rasterize the base geometry pass and allocate a per-frame ray budget for the effects with the highest visual return on the target hardware tier.
  3. Visual priority: If realistic reflections or dynamic shadows are the primary visual differentiator, selectively enabling ray-traced reflections and ray-traced shadows within a rasterized base pass delivers the highest perceptible quality gain per compute cost. These two effects account for the majority of the perceptual difference between rasterized and RT output.
  4. Development team size: Small teams should build on a game engine with built-in hybrid rendering support, such as Unreal Engine's Lumen or Unity HDRP RT mode, rather than implementing DirectX Raytracing (DXR) or Vulkan RT pipeline shaders from scratch. Production-validated denoising, BVH management, and temporal stability systems come with the engine choice.

Rasterization remains the correct default for mobile targets, console parity builds where hardware RT support is absent or constrained, and any title targeting high-fps competitive play. Real-time ray tracing is an opt-in enhancement layer within hybrid rendering, not a replacement for the rasterization rendering pipeline as the foundational geometry pass.

References

Frequently Asked Questions

Does ray tracing require specific GPU hardware?

Ray tracing requires GPU hardware with dedicated ray tracing acceleration units to run at playable frame rates in games. NVIDIA RTX-series GPUs (RTX 20 series and later) include hardware ray tracing acceleration, as confirmed by NVIDIA documentation. AMD hardware similarly requires dedicated RT support; software-only ray tracing on older hardware without these units is too slow for real-time use. DirectX Raytracing (DXR) and Vulkan ray tracing are the two API paths that expose hardware ray tracing pipeline support.

How does denoising make real-time ray tracing viable?

Denoising makes real-time ray tracing viable by reconstructing a clean image from a small number of rays per pixel rather than the large sample counts needed for noise-free offline rendering. The GPU casts a limited number of rays per pixel per frame, produces a statistically noisy raw image, then runs a denoising algorithm such as SVGF (Spatiotemporal Variance-Guided Filtering) or DLSS Super Resolution to infer the clean result. Without denoising, the ray count required to achieve comparable image quality would make real-time frame rates impossible on current hardware.

Can a game use both rasterization and ray tracing at the same time?

Yes. Hybrid rendering combines rasterization for the base geometry pass with selectively ray-traced effects for shadows, reflections, and ambient occlusion. Most shipping titles with ray tracing support use this approach: rasterization handles triangle projection and fragment shading at full speed, while ray-traced shadows and ray-traced reflections run as separate passes on top. NVIDIA describes this hybrid approach as the standard method for achieving high-quality results in real-time rendering.

Share this guide

Owen Fischer

Owen Fischer covers the engineering side of games and entertainment tech for techshooked: engine releases, GPU drivers, codecs, upscalers and the platform shifts underneath them. Frame-rate and latency figures carry their source and their test conditions, and each piece explains what a driver update or a new rendering feature changes on the hardware players already own.