Technical Explainer Gaming & Display

What Is Ray Tracing? How GPUs Render Reflections and Shadows

Off-screen reflections, ray-object intersections, and how to read game settings

Author: shaf Published Updated
  • Level: Intermediate
  • ~6 min read
  • 6 primary sources

Conceptual illustration of a blue light ray reflecting off a glass surface and traveling as a magenta-red ray toward a sphere
AI-generated conceptual illustration depicting ray intersection and reflection.
Key Takeaway

Ray tracing tests where virtual light rays intersect objects in a scene and uses those results to render reflections and shadows. Capable GPUs can accelerate intersection searches, while actual image quality and frame rate depend on where the game uses rays and which rendering settings you choose.

Who this helps

  • Readers who want to know what 'hardware ray tracing' means on smartphone and PC spec sheets
  • Players who want to weigh visual gains against performance cost when changing reflection or shadow settings
  • Readers curious about how GPUs efficiently test intersections between rays and scene geometry

Decision checklist

  1. Separate which rendering tasks are handled by rasterization versus ray tracing
  2. Check GPU support, game implementation, and selectable quality settings in order
  3. Compare visual effects and frame times in the exact same scene

When checking feature support, start with the chip's official specifications and manufacturer sources.

View A17 Pro specs and sources

Pan the camera slightly sideways in a game, and a sign reflected on the floor may suddenly vanish. Techniques that estimate reflections from on-screen color and depth lose that information once the sign moves outside the frame. With ray tracing, the GPU can search along the floor’s reflection direction and still find the sign as long as it exists in the scene’s geometry data. Screen-space reflections vs. ray tracing (Source 2)

What is ray tracing? Testing where rays intersect objects

A ray is a virtual line with a starting point and a direction. The GPU checks where the ray hits an object in the scene and uses that result to shade the screen. For a mirror, the engine calculates the reflection direction from the surface orientation and uses the color and material of whatever object the ray hits in that direction. For shadows, it traces a ray from a surface point toward a light source to see whether another object blocks the light in between. Ray and intersection basics (Source 1) Implementing reflections and shadows (Source 2)

DiagramFinding a reflected sign with a rayConceptual diagram of a specular reflection lookup. Even off-screen objects remain candidates if they are included in the searchable scene geometry.
  1. Locate the reflective surface point

    Determine the visible floor position from the camera and the direction the floor surface faces.

  2. Cast a ray along the reflection direction

    Compute the reflected direction from the surface normal and search for where it hits an object such as a sign.

  3. Shade the hit object

    Evaluate the material and lighting at the hit point and blend the result into the floor's appearance.

If the ray hits nothing in the reflection direction, an implementation may fall back to the sky color or environment map. For rough surfaces, multiple rays can be traced, averaged, and filtered to approximate glossy, blurred reflections. Which rays are traced and how many depends on the rendering technique and quality preset. Specular and rough surface reflections (Source 2)

What changes when ray tracing is combined with rasterization?

Rasterization projects shapes such as triangles from the camera’s viewpoint onto the screen to determine which pixels they cover, then shades each pixel using lighting and material data. Traditional reflections often sample on-screen color and depth or rely on pre-captured environment images. Rasterization and reflection examples (Source 2)

Using surface positions and orientations obtained via rasterization and adding rays for reflection calculations is called hybrid rendering. For example, the floor is drawn normally as triangles, and rays are cast only to look up what reflects in it. If a game applies ray tracing solely to reflections, shadows and global lighting in that same title may still use conventional methods.

Example passWhat it referencesWhat to inspect visually
Rasterizing surfacesGeometry projected to the camera, depth, materialsWhich surfaces appear in front
Screen-space reflectionsColor and depth from the current rendered frameWhat happens when a reflected object nears the edge of the screen
Ray-traced reflectionsScene geometry and materials included in the acceleration structureWhether objects that leave the camera view remain visible in reflections

Other methods such as reflection probes also help fill in off-screen information. When it is hard to tell which technique is active by eye alone, read the game’s setting description first, then toggle the option on and off in the exact same location to compare. Comparing reflection methods (Source 2)

What does dedicated GPU ray-tracing hardware accelerate?

Testing huge numbers of rays against every triangle in a scene would be far too slow. Instead, GPUs use acceleration structures such as a BVH (Bounding Volume Hierarchy), which encloses nearby shapes inside nested bounding boxes. If a ray does not hit an outer box, none of the smaller boxes or triangles inside need to be tested. When a ray does hit a box, traversal descends the hierarchy to test intersection against the candidate geometry inside. Explanation of acceleration structures (Source 3)

DiagramSkipping empty regions firstBoxes represent bounding volumes grouping scene geometry. Actual layouts and intersection counts depend on the scene.
  1. Group geometry into boxes

    Wrap nearby shapes in small bounding boxes, then enclose those within larger outer boxes.

  2. Pick only the boxes a ray passes through

    Any region whose outer box the ray misses can be eliminated immediately.

  3. Test candidate shapes for hits

    Traverse inside hit boxes to find exact intersection points with triangles or other primitives.

In its technical overview of M3 and A17 Pro GPUs, Apple describes hardware acceleration for traversing acceleration structures to find candidates and testing ray intersections. Even after an intersection is found, evaluating materials and shading colors at that hit point is still required to finish the frame. The DirectX Raytracing specification likewise separates geometry traversal and triangle intersection from the shader code apps write to calculate color. Apple GPU technical talk (Source 4) DirectX workload division (Source 5)

When objects deform or move, the acceleration structure must be updated too. In Metal, when changes are small, existing hierarchy boxes can be refitted to the new positions rather than rebuilt from scratch. Even with faster intersection tests, structure updates and shading can still take substantial time depending on the scene. Updating acceleration structures (Source 3)

How to read game settings and benchmarks

First, check which devices a game supports and which specific effects can be enabled. Even if a GPU includes dedicated ray-tracing hardware, supported devices and exposed options vary by title. Next, check render resolution, which effects use rays, and any frame-rate cap. When upscaling from a lower internal resolution (Frame Generation vs. Upscaling), the display output resolution and the resolution at which rays are traced may differ. Example of combined rendering passes (Source 2)

Illustrative assumption — not measured data

Assume one primary ray is cast per pixel. At 1280×720 that is 921,600 rays, while at 1920×1080 it is 2,073,600 rays—2.25 times as many initial rays.

Real games may trace rays for only a subset of pixels or cast different ray counts per effect. Because traversal paths and follow-up shading also vary per ray, frame time cannot be predicted from this multiplier alone.

UL Solutions’ 3DMark Solar Bay includes lighting, particles, and post-processing in addition to ray-traced reflections. Its score reflects rendering performance under those specific test conditions. Compare results within the same test and version, and verify actual game FPS and sustained behavior over longer sessions (How to spot thermal throttling) separately. What Solar Bay measures (Source 6)

Decision FlowHow to evaluate ray tracing in your gameChanging one setting at a time in the same scene makes it easier to judge both visual impact and performance cost.
  1. Is ray tracing selectable on your device?

    Yes

    Read the setting description to identify the exact effect.

    Note supported devices, OS version, game version, and whether it targets reflections, shadows, or other effects.
  2. Do you see the expected effect when enabled?

    Yes

    Move the camera to compare reflections and shadows.

    Keep location, resolution, and quality fixed, toggling only one option at a time.
  3. Do frame intervals stretch when you raise quality?

    Yes

    Step down effect quality or render resolution gradually.

    Check not only average FPS, but also stutter spikes and behavior after extended play.
  4. If the setting does not appear, check the game's official documentation for the features supported on your device.

To see how completed frames line up with display refreshes, see Hz, FPS, and Frame Deadlines. For choosing which benchmark suits your question, visit How to Read Benchmark Scores. You can also inspect source-backed specs side by side in the M4 vs. M5 comparison.

GPU configurations of key chips (source-backed quick reference)

Below are GPU names, core counts, and process generations compiled from official vendor materials. Hardware ray-tracing support and generational updates can be verified under each chip page’s highlights and official sources.

GPU configurations and process generations registered from each vendor's official materials. Actual in-game ray-tracing support and FPS depend on each title's implementation and graphics settings.
ChipGPUProcess Node
A17 ProApple Announced 6-core GPU (6-core) Source 3nm Source
A19 ProApple Released 6-core GPU (6-core) Source Not listed
M4Apple Announced 10-core GPU (10-core) Source 2nd-generation 3nm Source
M5Apple Announced 10-core GPU (10-core) Source 3rd-generation 3nm Source
Snapdragon 8 Elite Gen 5Qualcomm Announced Qualcomm Adreno Source 3nm Source Official generation name; foundry and sub-node details (such as N3P) are not listed.
Dimensity 9500MediaTek Announced Arm Mali-G1 Ultra MC12 Source N3P Source

Frequently Asked Questions

Does hardware ray tracing guarantee that games will run smoothly?

Dedicated hardware primarily accelerates finding ray-geometry intersections. Frame time also depends on which effects use rays, how many rays are cast, shading work after an intersection is found, and other CPU/GPU workloads. Always verify in the same game and quality preset.

When ray tracing is turned on, is all lighting across the entire screen ray-traced?

It varies by game. For example, a title may rasterize scene geometry as usual and trace rays only for reflections. Cross-check the setting label against the specific effect it actually changes.

Can a 3DMark ray tracing score tell me the FPS of a specific game?

A benchmark score reflects performance in that benchmark's own scene and settings. When evaluating a particular game, check measurements matching that title, device, resolution, and quality preset.

What is the difference between ray tracing and rasterization?

Rasterization projects shapes such as triangles onto the screen to determine which pixels they cover and computes their colors. Ray tracing tests where virtual rays hit objects in the scene to compute effects like reflections and shadows. Hybrid rendering combines both—for instance, rasterizing a floor normally while tracing rays only to find what reflects in it.

What is a BVH (Bounding Volume Hierarchy)?

It is an acceleration structure that groups nearby geometry inside nested bounding boxes. If a ray misses a large outer box, the GPU can skip testing all smaller boxes and triangles inside it, drastically reducing intersection checks. When objects move or deform, the structure also needs to be updated.

Sources & Retrieval Dates