AIFeed

GTA 6 Graphics Rendering: What We Know So Far

Original text(via Hacker News)

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.

The Vice City skyline at night, with lit towers, street lighting and haze over the river. (Credit: Rockstar Games)
The Vice City skyline at night, with lit towers, street lighting and haze over the river. (Credit: Rockstar Games)

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

Base scene rendering. Shadow maps, the camera pass, and the ray-tracing scene feed fog and clouds, direct lighting, diffuse bounce, and glossy reflections. The lit opaque scene is followed by a skin subsurface scattering pass, then strand hair, then water and transparents, into the HDR scene image.
Base scene rendering. Shadow maps, the camera pass, and the ray-tracing scene feed fog and clouds, direct lighting, diffuse bounce, and glossy reflections. The lit opaque scene is followed by a skin subsurface scattering pass, then strand hair, then water and transparents, into the HDR scene image.

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.

A swamp settlement surrounded by dense trees, with the Vice City skyline faint on the horizon. (Credit: Rockstar Games)
A swamp settlement surrounded by dense trees, with the Vice City skyline faint on the horizon. (Credit: Rockstar Games)

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.

A gas station at dusk lit by a red neon strip, a lit sign and car headlights, with the skyline behind. (Credit: Rockstar Games)
A gas station at dusk lit by a red neon strip, a lit sign and car headlights, with the skyline behind. (Credit: Rockstar Games)

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.

Direct lighting from a partly occluded emitter, diffuse bounce off a wall, and fog scattering toward the camera.
Direct lighting from a partly occluded emitter, diffuse bounce off a wall, and fog scattering toward the camera.

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.

A street passing under a highway overpass, with sunlit road in front and the shaded underside and painted columns lit by bounced light. (Credit: Rockstar Games)
A street passing under a highway overpass, with sunlit road in front and the shaded underside and painted columns lit by bounced light. (Credit: Rockstar Games)

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.

A canal at dusk with police lights on a bridge, a yacht and a police boat, their lights reflected in the hull and the water. (Credit: Rockstar Games)
A canal at dusk with police lights on a bridge, a yacht and a police boat, their lights reflected in the hull and the water. (Credit: Rockstar Games)

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.

Spotlights behind figures on an airboat cast shadowed shafts of light through fog at night. (Credit: Rockstar Games)
Spotlights behind figures on an airboat cast shadowed shafts of light through fog at night. (Credit: Rockstar Games)

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 refraction directions, a Fresnel term strengthens reflection at grazing angles, and the depth difference under the surface sets how much the water absorbs. The programmer who worked on the ocean lists the water BRDF, underwater volumetrics, caustics above and below the surface, and the water's diffuse and specular GI.

A Vice City marina by day, with boat wakes, sun glitter and the skyline reflected in the water. (Credit: Rockstar Games)
A Vice City marina by day, with boat wakes, sun glitter and the skyline reflected in the water. (Credit: Rockstar Games)

Water reflections combine sources. Screen-space reflections handle what is on screen, and the ray-traced specular GI supplies what is off-screen or hidden. In pre-release footage, Digital Foundry saw building reflections on water that held up where SSR would fail.

The datamined settings also list a 512×256 water reflection resolution. RDR2 had a water-reflection pass at exactly that size, which raymarched the atmosphere along reflected directions so the water could reflect clouds. I expect it does the same job here.

Finally the renderer combines the lit opaque world and hair with water, glass, spray and other particles into the HDR scene image, and applies the fog. Each transparent layer needs the fog at its own depth, so a particle in front of a window gets a different amount than the scenery behind it.

The PS5 Pro pipeline

PS5 Pro scene rendering. Shadow rays replace shadow maps for direct lighting, and the ray-tracing scene, diffuse bounce, and reflections run at higher tiers.
PS5 Pro scene rendering. Shadow rays replace shadow maps for direct lighting, and the ray-tracing scene, diffuse bounce, and reflections run at higher tiers.

PS5 Pro runs the base pipeline at the same 1440p with three changes.

Ray-traced shadows. Sony and Rockstar confirm them, and Digital Foundry sees them on both the sun and local lights. Tracing toward points on a finite emitter gives shadows that are sharp at contact and soften with distance, and removes the stepping of a shadow map. GTA V Enhanced traced only the sun. In the datamined Pro profile the ray-traced shadow tiers are High and the conventional shadow tiers drop to Low. The shadow maps are still there at lower quality, and I expect they still serve the fog grid and particles.

Higher ray-tracing tiers. BVH quality rises from High to Ultra and global illumination from Medium to High. Digital Foundry finds reflections modestly cleaner and higher in resolution, though reflected surfaces still often lack shadows.

PSSR 2 replaces Rockstar's TAA for reconstruction, covered next.

Sony quotes the Pro's ray tracing at two to three times the speed of the base PS5, which is what makes a third traced effect affordable.

The presentation pipeline

The presentation pipeline: resolve and upscale, camera effects, film treatment, and UI, with the resolution and upscaler for each console.
The presentation pipeline: resolve and upscale, camera effects, film treatment, and UI, with the resolution and upscaler for each console.

Rockstar describes "an imaging pipeline modelled after real world cinematic camera and film treatment." Arthur Marques Medeiros lists work on the exposure systems, bloom, lens flares and depth of field. Tone mapping and color grading translate scene lighting into the brightness and color range of an HDR or SDR display. There is also a vignette, which Rockstar confirms is an artistic choice.

A low sun behind clouds and a power pylon at sunset, with bloom around the sun and a dark, hazy landscape below. (Credit: Rockstar Games)
A low sun behind clouds and a power pylon at sunset, with bloom around the sun and a dark, hazy landscape below. (Credit: Rockstar Games)

Reconstruction differs per console, and Rockstar has given the numbers:

ConsoleBase sceneOutputReconstruction
PS5 Pro1440p4KPSSR 2
PS51440p4KRockstar's in-house TAA
Xbox Series X1440p4KRockstar's in-house TAA
Xbox Series S720p1080pAMD FSR Upscaling 4

Temporal anti-aliasing combines jittered samples from the current frame with previous frames reprojected by motion vectors. Digital Foundry measures a fixed 1440p on the larger consoles with no dynamic resolution. It finds that PSSR assembles a real 4K image from multiple frames on Pro, while the base PS5 and Series X image looks like 1440p. So Rockstar's TAA mainly anti-aliases and stabilizes the 1440p scene, and adds little detail on the way to 4K.

The UI is composited at 4K after upscaling on all four consoles, including Series S.

This final temporal pass is also the last of several filters that hide sparse sampling. RDR2 dithered its volumetric lookups and left TAA to stabilize them, and hair, foliage and soft-shadow filtering rely on it the same way. The ray-traced GI and reflections need more help. At one ray per sample their noise is too strong for TAA alone, so they are denoised first, and Digital Foundry still sees the residue on rough metal and in dark interiors.

Checking the budget

To check that this estimate adds up, I built the GTA VI Frame Calculator (source). It models the buffers, resident scene data and memory traffic of the pipeline above on each console, with every assumption editable.

ConsoleFrame buffersResident sceneModeled memory / budgetMemory traffic at 30 fps
PS5525 MiB5.75 GiB7.77 / 12.5 GiB86.5 GB/s
PS5 Pro555 MiB6.00 GiB8.05 / 13.7 GiB95.8 GB/s
Xbox Series X525 MiB5.75 GiB7.77 / 13 GiB86.5 GB/s
Xbox Series S154 MiB3.55 GiB4.90 / 7.8 GiB23.0 GB/s

The pipeline fits in memory and bandwidth on every console. Frame buffers are small next to the world data, so the real totals depend on how much of the world the game keeps resident. That is surely more than I modeled, given that Rockstar's technical statement says memory pressure on Series S "posed a bit of a challenge."

Skin and hair are a small part of it. At 1440p their render targets come to about 84 MiB, and I allow 192 MiB for strand geometry.

GPU time is the tighter constraint. Published timings from shipped console renderers put quarter-resolution diffuse GI at 3 to 7 ms at 1440p and reflections at 3 to 4 ms. With BVH upkeep, ray tracing takes roughly 10 ms of the 33.3 ms frame. Tracing both at full resolution would cost about four times as much and would not fit.

The same arithmetic leaves no room for ray-traced shadows on the base consoles and several milliseconds for them on PS5 Pro, which matches what shipped.

Series S renders a quarter of the pixels, which cuts shading, buffers and screen-driven ray work. The BVH and its caches do not shrink, so the Low BVH tier is there to save memory. Ubisoft dropped ray-traced GI on Series S in Assassin's Creed Shadows for that reason, while Rockstar kept it.

What remains open

These are the questions I would most like answered, and the footage that would answer them.

QuestionWhat would settle it
Where do diffuse GI rays start?The error right after a camera cut. Per-pixel grain that settles in a few frames means a per-pixel gather. Blotches several pixels wide mean screen probes. Leaks through thin walls and bounce that lags by seconds mean a world-space probe grid.
How are ray hits lit?Compare a reflected surface with its direct view. Missing shadows and flattened materials in the reflection mean simplified hit lighting from a cache.
What does Pro still shadow-map?Compare fog shafts, particle shadows and distant shadows across PS5 and Pro.
What does the 512×256 water target hold?Watch a cloud reflected in calm water as the camera tilts. A reflection that stays correct at the screen edge but is visibly coarse is the low-resolution target.
Do the base consoles reconstruct detail above 1440p?Compare a static scene with a slow pan on PS5. Detail that resolves only at rest would show temporal upsampling. Digital Foundry currently sees none.

Rockstar's graphics team will hopefully present this work themselves, as they did for RDR2's atmosphere. Until then, this is the frame as best I can reconstruct it. If you worked on it, or you have captures that settle one of these questions, I would love to hear where I am wrong.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Hacker News
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗