Hacker News

GTA 6 Graphics Rendering: What We Know So Far

Ben Houston • • 20 min read

Grand Theft Auto VI is out. Take-Two reports $3.79 billion in first-day sales, the biggest launch of any entertainment product in any medium. It also looks incredible.

Digital Foundry titled its pre-release analysis "perhaps the most impressive showcase we've ever seen in real-time rendering", and I agree with the many people saying the game sets a new bar for graphics.

Rockstar has not published how it does it, so this essay is my best estimate of how the RAGE engine renders a frame of GTA VI. I built it from what is public today:

  • Rockstar's formal interviews, mainly the technical statement from its technology leads and an art team interview.
  • Posts by Rockstar graphics programmers describing what they worked on.
  • Digital Foundry's analyses of the shipping game on all four consoles.
  • A datamined table of the graphics settings for each console, which Rockstar has not authenticated.
  • Published research and talks from comparable open-world console renderers.

I also lean on two other things. One is lineage. Adrian Courrèges's GTA V graphics study and imgeself's Red Dead Redemption 2 graphics study took captured RAGE frames apart pass by pass, and engines tend to evolve from one game to the next and are rarely rewritten. Nobody has a GTA VI frame capture to take apart yet, which is why this study has to work from indirect evidence.

The other is the hardware, since each console has a known amount of memory, memory bandwidth and GPU power, and at the game's 30 fps the whole frame has to fit in 33.3 ms. I think the result is close, although I do not know the new optimizations Rockstar invented, and there are surely many.

What follows is the outline of what happens in a frame, in what order, and what differs between the consoles.

The base pipeline

PS5, Xbox Series X and Xbox Series S render the scene the same way. PS5 and Series X run it at 1440p, and Series S at 720p with lower tiers for the ray-tracing scene, shadows and volumetric lighting.

1. Build the camera and ray-tracing scenes

RAGE streams geometry and textures around the player, culls what is outside the view, and picks a level of detail for the rest. Nearby surfaces can use tessellation, and parallax occlusion mapping makes pavement and stone look recessed without adding triangles. Both carry over from RDR2's settings.

The opaque pass rasterizes the nearest surfaces into a depth buffer and a G-buffer, a set of textures holding the material properties at each pixel. Lighting is then evaluated from those buffers. This is deferred shading, as in GTA V and RDR2, and Rockstar graphics programmer Oguzhan Karakaya mentions working on a deferred shadow resolve system.

The pass also flags skin pixels in the stencil buffer, as GTA V did, for the skin step in stage 6. Glass and other transparent materials are drawn later in forward passes, and hair gets a pass of its own.

Alongside the camera view, the engine maintains the ray-tracing scene. A bounding volume hierarchy (BVH) lets a ray skip whole groups of geometry by testing their bounding boxes first. Rays for bounce light and reflections need the world outside the camera view too. Digital Foundry sees animated characters in off-screen reflections and characters contributing bounce light, so skinned meshes are in the BVH and are refit as they move.

The datamined BVH quality tier is High on PS5 and Series X and Low on Series S. Other open-world console renderers fit the scene into memory with lower-detail meshes and a shorter coverage distance, and that is what I expect these tiers control. Ubisoft's Assassin's Creed Shadows talk reports about 320 MB of acceleration structures. A BVH does not shrink with rendering resolution, which is why memory is the hard part on Series S.

2. Apply direct lighting and shadows

The renderer evaluates the sun as a directional light and shades each surface with the local lights that reach it. To bound the work in a dense scene like Vice City at night, each light is first assigned to the screen tiles or 3D clusters it can affect, as in RDR2.

Emilio López, who worked on direct lighting at Rockstar, writes that "most lights are textured area lights", each with a finite emitting surface and a texture that varies emission across it. For such a light, the shader estimates the material's response across the emitter's surface, weighted by its emission texture. Linearly transformed cosines are the standard way to do this efficiently for polygonal lights. That integral is unshadowed, and visibility is multiplied in as a separate term.

On the base consoles, visibility comes from shadow maps. The renderer stores depth from the light's point of view and compares each shaded point against it. The sun uses cascades, with finer maps near the camera. Digital Foundry describes the result as closely derived from RDR2, with variable penumbra, occasional aliasing and visible cascade steps. Edges that are sharp at contact and soften with distance point to a PCSS-style filter, which GTA V offered on PC.

Many local lights cast shadows, even on the base consoles. López mentions "a specific bit of tech for local light shadows" and does not say what it is. The common way to afford that many is to cache the shadow maps of static fixtures and update only a few per frame. Colored glass also tints the shadow it casts, on every console except Series S.

3. Add diffuse bounce light

Ray-traced global illumination (RTGI) estimates the light that arrives at a surface after bouncing off the rest of the scene. In a neon-lit alley, rays from the pavement hit a colored wall, pick up its reflected light, and carry it back. The same rays find shelter from the sky and geometry outside the camera view.

This is the stage I am least sure of. That all four consoles use hardware-traced, denoised GI is well supported, but Rockstar has not said where the rays start or how their hits are lit. My estimate is a per-pixel diffuse gather at reduced resolution, with its own denoiser:

  • Pick about one ray direction for a quarter to a half of the visible pixels.
  • March the ray against camera depth first, where a hit can reuse the already lit image.
  • Continue into the BVH when the screen has no answer.
  • Light the hit cheaply, with simplified materials, and read further bounces from a small world-space cache.
  • Accumulate over time and filter with depth and normal awareness, then spread the result to full resolution.

Digital Foundry describes the RTGI in GTA V Enhanced, the closest RAGE precedent, as per pixel. In GTA VI it reports fine contact-scale indirect shadowing, bounce light from small objects and characters, no light leaks, and a flashlight whose bounce is reactive but noisy. It also sees denoising artifacts when a door opens onto a dark room. A slowly converging world-space probe grid would lag and leak in those cases, which leaves a screen-probe gather, as in Ghost of Yōtei, as the credible alternative.

A per-pixel gather also fits the budget, since Massive's Snowdrop and Ubisoft's Assassin's Creed Shadows both ship this design on consoles. They trace one ray per pixel at a quarter of the pixel count and spend about 3 to 7 ms on it at 1440p, much of it on hit lighting and denoising. The datamined GI tier is Medium on all three base consoles. Series S gets its savings from the 720p scene and the lower BVH tier, and Digital Foundry finds its GI somewhat messier.

4. Resolve glossy reflections

Reflections are a hybrid of ray tracing and screen-space techniques. RAGE sends a limited set of reflection rays through the BVH to recover what the camera cannot see, and layers screen-space reflections (SSR) on top wherever the camera's own depth and color provide a hit. Digital Foundry identifies that layering in storefront glass on every console.

It finds ray-traced reflections even on quite rough surfaces, where they turn noisy and blotchy in motion, which points to few samples and a dedicated denoiser. The traced reflections are cheap ones. Digital Foundry describes them as low resolution, drawn from a simplified scene, and often missing shadows and GI detail at the reflected surface. That matches the usual console approach of tracing at reduced resolution against lower-detail geometry, with cheap lighting at the hit.

Mirrors are a separate path. Digital Foundry sees planar reflections on many of them, where the engine renders the scene a second time from a camera reflected across the mirror. Karakaya describes mirror reflections as one of his main contributions, and the settings carry a mirror quality tier of their own, as GTA V and RDR2 did.

A cubemap is the likely fallback for distant scenery, the sky, and rays that miss. GTA V and RDR2 both used cubemap captures, and the datamined settings still carry RDR2's name for them.

5. Render sky, clouds, and lit fog

RAGE evaluates a time-of-day sky and an atmosphere that varies across the map. The clouds are procedural and volumetric, and the player can fly through them. Rockstar's art team says the volumetrics started from the system built for RDR2, which Rockstar published at SIGGRAPH 2019. It has two parts:

  • Near the camera, a camera-aligned 3D grid of 160×88×64 cells, reaching 160 m. Each cell evaluates the sun and the local lights, with visibility from the existing shadow maps. That visibility is what shapes light shafts.
  • Beyond the grid, a half-resolution raymarch steps through the medium toward the surface or the sky, accumulating scattered light and tracking how much of the background survives.

The datamined settings still have separate tiers for volumetric lighting and raymarching, under RDR2's setting names. RDR2's far raymarch left out local lights to save time. López writes that in GTA VI "nearly all local lights have volumetrics, including at long distance", and that most are shadowed. So that limit is gone, through new work that Rockstar has not documented, and I think it is a large part of why Vice City at night keeps its mood into the distance.

6. Finish characters: skin and hair

Characters go through the stages above like everything else, and then get two extra steps once the opaque scene is lit and before water and fog go on top.

Skin. Light enters skin, scatters under the surface and leaves a short distance away. That softens the shading and lets light glow red through thin parts like ears. In a deferred renderer this is a separate screen-space pass that runs after the opaque scene is lit.

The lighting keeps diffuse light apart from specular on the skin pixels flagged in stage 1. The pass blurs that diffuse light with a kernel shaped like skin's scattering profile and scaled by depth, then adds the specular highlights and reflections back sharp. It has to run before water and fog, or they would bleed into the blur. Separable subsurface scattering is the standard reference. RAGE has done this before. The GTA V graphics study shows a subsurface scattering pass right after the lighting is combined and before water, applied to the player and to pedestrians. In GTA VI, Digital Foundry points out the subsurface scattering on Jason's ears. The dual-specular BRDF that Rockstar's Victor Avila Parcet names is how skin's highlights are usually modeled: one tight lobe and one broad lobe for the oily surface.

Hair. Digital Foundry calls hair possibly the game's most impressive visual system. It is strand-based and physics-driven on basically every character, pedestrians included, and it is the same system in gameplay and cutscenes. It has a convincing specular sheen and soft self-shadowing. It clumps and turns glossy when wet, and wind catches it.

A strand is thinner than a pixel, so hair cannot go through the G-buffer like an opaque surface. It touches the frame in three places:

  • Before rendering, the strands are simulated and their geometry is built on the GPU.
  • In the shadow pass, hair casts shadows like other geometry, and gets a self-shadowing term of its own inside the hair volume.
  • After the opaque scene is lit, the strands are drawn in their own pass, shaded with a hair model using the same lights, shadows and bounce light, and composited over the scene.

The lighting itself treats each strand as a thin, translucent fibre. A strand has no useful surface normal, only a direction, so the shading works from the angles between the light, the view and the strand. The standard model, from Marschner and co-authors, splits the light into three paths:

  • Reflection off the outside of the fibre, which is the white highlight.
  • Transmission straight through it, which is the glow when hair is backlit.
  • Internal reflection off the back wall, which is a second highlight tinted by the hair's color.

Two more terms make hair look soft instead of like a helmet. Shadowing is partial, based on how much hair the light passed through as well as whether anything is in the way. And in light-colored hair, light bounces between many strands before leaving, which games approximate with a technique called dual scattering. Bounce light from stage 3 goes through a simplified version of the same model.

Hair also writes depth and motion vectors, so fog, depth of field and the temporal resolve treat it correctly. Its sub-pixel coverage is left for that final temporal pass to resolve. How RAGE rasterizes and shadows the strands is not public. Hair is expensive. Digital Foundry suspects it is one of the reasons a 60 fps mode was off the table, and Series S keeps the system at a lower resolution, where facial hair turns blurry.

7. Shade water and composite the scene

Water is shaded in its own pass, which reads scene depth and the already lit opaque image. The wave simulation bends the reflection and re

Read on Hacker News ↗ ← Back to News

Comments

No comments yet. Start the discussion.