Independent guides to games and computersNot affiliated with any game or hardware company
Allxrs

PC Gaming

Ray Tracing Explained in Plain Language

Ray tracing is a way of drawing light in a game by following the paths that light would take through a scene. Instead of approximating a shadow or a reflection with a prepared shortcut, the game calculates where light starts, what it hits and where it goes next. The picture tends to look more natural, especially on shiny, wet or dimly lit surfaces.

That realism has a cost. Following light around a scene takes far more calculation than older methods, so frame rate usually drops when the option is on. Understanding what the setting does makes it easier to judge whether the change you see is worth the performance you give up.

How games drew light before ray tracing

For decades, real-time graphics have relied on a method called rasterization. The game takes the three-dimensional shapes in a scene, works out which ones the camera can see and converts them into the pixels on your screen. It is fast, which is why it became the standard, but on its own it knows very little about how light travels between objects.

To fill that gap, developers built a toolbox of approximations. Shadows are drawn from a simplified view of the scene taken from the light's position. Reflections often reuse what is already on screen, which is why a reflected object can vanish from a puddle when the object itself moves out of view. Soft indirect light is frequently calculated ahead of time and stored, so it cannot react when a door opens or a lamp is knocked over.

These methods can look very good, and skilled artists hide their limits well. Ray tracing does not replace them completely. In most games it is added to a rasterized picture for the specific effects where the approximations struggle.

What tracing a ray actually means

A ray is an imaginary straight line sent into the scene. The game picks a starting point and a direction, then asks a simple question: what is the first thing this line touches. The answer tells it what a mirror should show at that point, whether a spot on the floor can see the lamp or is in shadow, or what color of light is bouncing off a nearby red wall.

In real life, light leaves a source and eventually reaches your eye. Games usually work in reverse, sending rays out from the camera, because only the light that reaches the viewer matters for the picture. Each pixel may need one or more rays, and each ray may spawn further rays when it bounces.

With millions of pixels and many frames each second, the number of calculations grows very quickly. That is the whole reason ray tracing stayed in film production for so long before it became practical in games.

The effects you will see in a graphics menu

Games rarely offer one ray tracing switch. More often the feature is split into separate effects that you can enable one at a time. Names vary, but the common ones are these.

  • Reflections: mirrors, glass, water and polished floors show objects that are off screen or behind the camera, not just what is already visible.
  • Shadows: edges are sharp close to the object and softer farther away, as they are in daylight, and small objects cast shadows that older methods often skip.
  • Ambient occlusion: corners, gaps and the places where objects meet are darkened more accurately, which makes items look grounded.
  • Global illumination: light bounces from one surface to another, so a sunlit floor brightens a room and colored surfaces tint what is near them.
  • Path tracing: sometimes called full ray tracing, this handles nearly all lighting with rays. It is the most demanding option by a wide margin.

The visible difference depends heavily on the scene. A rainy city street at night shows reflections clearly, while a bright outdoor field may look almost the same with the option off.

Why it costs so much performance

Every ray has to be checked against the geometry of the scene, and a detailed game world contains an enormous amount of geometry. The graphics card organizes the scene into a structure that speeds up these checks and keeps that structure updated as things move. All of this work is added to the normal rendering work of each frame.

To keep things playable, games send far fewer rays than a film renderer would. The raw result is grainy, so a cleanup step called denoising smooths it out. Denoising is why ray traced lighting can sometimes look slightly smeared or lag a moment behind fast movement.

Ray tracing is also commonly paired with upscaling, where the game renders at a lower resolution and reconstructs a sharper image. Rendering fewer pixels means sending fewer rays, which recovers some of the lost frame rate. If a game offers both features, it is worth trying them together before deciding the effect is too heavy.

What your computer needs to run it

Real-time ray tracing depends on a graphics card with dedicated hardware support for it. Cards without that support either cannot enable the option or run it too slowly to be useful. The manufacturer's specification page for your card states whether hardware ray tracing is supported.

The software side matters as well. Games request ray tracing through a graphics interface such as DirectX or Vulkan, so the operating system and the graphics driver need to be reasonably current. A game's store page normally lists separate system requirements for playing with ray tracing on, and those are usually higher than the standard recommended requirements.

Memory on the graphics card is another limit. Ray tracing uses extra video memory, and running out can cause stutter even when average frame rate looks acceptable. Lowering texture quality or resolution may help if that happens.

Deciding whether the option is worth it for you

There is no correct answer that applies to every player. As a rule of thumb, slower games where you stop and look around, such as story adventures or exploration games, benefit more than fast competitive games, where a high and steady frame rate usually matters more than lighting accuracy.

It also helps to treat the effects separately. One effect at a moderate quality level may give most of the visual change for a fraction of the cost of enabling everything. Many players settle on a mix, such as ray traced reflections with standard shadows.

If the game becomes uncomfortable to control, the setting is too high for your hardware, whatever the screenshots look like. Turning it off is a normal choice and the game will still look the way its artists intended.

A short test routine for your own PC

  1. Confirm on the manufacturer's specification page that your graphics card supports hardware ray tracing.
  2. Update the graphics driver using the card maker's own software or site.
  3. Pick a demanding, repeatable spot in the game, ideally one with water, glass or strong shadows.
  4. Note the frame rate with ray tracing off, using the game's built-in counter if it has one.
  5. Enable one ray traced effect at its lowest quality level and compare both the picture and the frame rate.
  6. Add upscaling if it is available and check whether the result is sharp enough for you.
  7. Play for ten minutes with the settings you prefer before making them permanent, paying attention to stutter as well as the average.

Informational content only. Allxrs is an independent publication and is not affiliated with any game, hardware or software company. We do not sell products and nothing here is a recommendation to buy. Products, features and prices change: confirm current details on the manufacturer's or platform's own pages, and follow the device manual before opening or modifying any hardware.

Keep reading

PC Gaming

How to Free Up Storage Space for PC Games

Practical ways to find what is filling your drive, remove games and leftover files safely, move libraries to another drive and keep space free.

By the Allxrs Editorial Team · · 6 min read