For decades, games fooled your eyes. Shadows were “painted on”, reflections in puddles often showed only what was already on screen, and the lighting in a room was set up by hand by an artist. Ray tracing tries to stop faking it.

How games normally draw a picture

To understand what’s new, it helps to know the old way. Most games use a technique called rasterisation. The game takes the 3D objects in the scene, made of thousands of tiny triangles, and projects them onto your flat screen. Then it colours each pixel according to the material and the lights nearby.

It’s extremely fast, but it has one big problem: each object is drawn more or less on its own. The game doesn’t naturally “know” that the red wall should cast a reddish glow on the white floor, or that a mirror should show what’s behind you. All of that has to be added with separate tricks.

And there are many such tricks:

  • Shadow maps — the game draws the scene from the light’s point of view to work out what’s in shadow.
  • Screen-space reflections — reflections built from what’s already visible on screen. That’s why a reflection in a puddle can suddenly disappear when you tilt the camera.
  • Baked lighting — light calculated in advance, during development, and saved into the level. It looks great, but doesn’t react when something moves.

Following the rays

Ray tracing takes a different approach. The name says it all: the computer traces rays of light. In practice it does it backwards. It shoots rays from the camera’s “eye” into the scene and checks what they hit, what they bounce off and whether anything blocks them on the way. That way reflections, shadows and scattered light behave the way they do in the real world.

The idea isn’t new. It was described in computer graphics research decades ago, and animated films and visual effects have used it for years. The difference is that a film studio can spend minutes or even hours on a single frame. A game has a few milliseconds.

Why is it so demanding?

Because you need an awful lot of rays — for every pixel, many times per second. And light doesn’t stop after one bounce. To get realistic lighting, you need to follow it as it bounces between surfaces, which multiplies the work.

That’s why modern graphics cards have dedicated cores just for this job. NVIDIA introduced them in consumer cards in 2018, and AMD and Intel followed. The PlayStation 5 and Xbox Series X|S also support ray tracing in hardware. Even so, games lean on tricks:

  • they trace fewer rays and “fill in” the rest with a denoising algorithm,
  • they render at a lower resolution and upscale with AI (DLSS, FSR, XeSS),
  • they mix ray tracing with classic techniques wherever the difference can’t be seen.

In practice, “ray tracing” in a game’s settings can mean very different things. Sometimes only shadows are ray traced, sometimes only reflections, and sometimes the whole lighting.

Path tracing: the next level

The most demanding version is called path tracing. Instead of using ray tracing for selected effects, the game calculates almost all lighting this way, with many bounces. Examples are the “Overdrive” mode in Cyberpunk 2077 and the lighting in Alan Wake 2. The result can look close to a film, but it needs the most powerful graphics cards and heavy use of upscaling.

What it changes on screen

The difference is easiest to see in a few situations:

  • Reflections in glass, water, shiny floors and wet asphalt. They show things that are off-screen and don’t disappear when you move the camera.
  • Indoor lighting. Light from a window bounces off the walls and fills the room softly, and coloured surfaces tint each other.
  • Shadows, which are sharp close to an object and get softer further away, like in reality.
  • Dark scenes, where correct light makes it clear where light sources are, instead of everything being evenly grey.

In bright outdoor scenes during the day, the difference is often much smaller. Good artists have learned to fake that lighting very well.

Is it worth it?

The biggest difference shows up in reflections and indoor lighting. In a fast online shooter, though, you probably want more frames per second.

A good rule: turn it on, compare screenshots and decide for yourself. A game should be smooth, not just pretty. If turning on ray tracing drops your game below 60 fps and you notice it, it’s usually better to leave it off or use a lighter setting.

It’s also worth knowing that the line is slowly disappearing. Some newer games require ray tracing hardware and don’t offer a “no ray tracing” option at all, because developers designed the lighting around it from the start. It saves them a lot of manual work.

Frequently asked questions

Do I need an expensive graphics card for ray tracing?

For basic effects, a mid-range card from the last few years is enough, especially with upscaling turned on. For path tracing at high resolution, you need the top models.

Is DLSS the same as ray tracing?

No. DLSS (and similar FSR and XeSS) is upscaling: the game renders a smaller image and enlarges it intelligently. It’s often used together with ray tracing, because it gives back the performance that ray tracing takes.

Why does ray tracing sometimes look worse?

When too few rays are traced, the image can be noisy or “smeared”, especially in motion. The denoising algorithm has to guess the missing information, and sometimes it guesses wrong.

  • #technology
  • #graphics
  • #hardware