GTA VI Launch#

Grand Theft Auto VI came out on November 19, on PlayStation 5 and Xbox Series consoles. An official PC version hasn’t even been announced yet, but on the same day, a group released a copy of the Xbox version. The copy was without the executable file needed to run the game on a PC. They promised that people would have the game running on PCs within a week, even past 30 frames per second.

Achieving this without an emulator that can run GTA VI is so unprecedented that people bet it would never be playable at 30 FPS before an official PC version, let alone in a week.

On November 23, four days after launch, the executable hit the internet. By that evening, a PC could show the game’s menu. The next day, the world appeared, at about 2 FPS. Take-Two, Rockstar’s parent company, calls the files stolen, so GitHub blocked the biggest related project and its copies. But at that point, there was no putting the genie back in the bottle.

By the 26th, three days after the executable came out, one version was reported running an early scene in 4K at 25 to 30 FPS.

A quick disclaimer: you shouldn’t try to run these pirated copies, especially if you don’t want to see one of these on your PC.

But the interesting question is, how do you get a console game running on a PC within a week, with no emulator?

30 FPS#
Nine days before Grand Theft Auto VI launched, Rockstar announced that it targets 30 frames per second, while keeping the density of its world and its inhabitants. But why 30? On the same consoles, you can play GTA V at 60. You might be guessing that the graphics are too heavy in the new GTA.

A console has a central processor, a CPU, and a graphics processor, a GPU, built into one chip together. The GPU is responsible for drawing each picture: the light, the shadows, and the reflections. The CPU runs the world inside it. It moves the people and the cars and helps load the map ahead.

A PlayStation 5 Pro has a stronger GPU than a regular PS5. It gives you a sharper picture and ray-traced shadows, but still not at 60 FPS. Is GTA VI held back by the GPU, or is it the CPU, or maybe both?
RAGE#
An engine is the software that runs a game’s world. Rockstar’s is called RAGE, the Rockstar Advanced Game Engine. Because Electronic Arts bought RenderWare, the engine under GTA III, Rockstar faced two options. Either keep using a third-party engine like Unreal, which could have eventually cost them hundreds of millions in royalties, or build their own engine.

RAGE grew out of AGE, the Angel Game Engine, made by Angel Studios, which Take-Two bought in 2002. In 2006, Rockstar released a table tennis game built on RAGE. It was made to show off the engine’s physics.
GTA IV followed in 2008. By then, RAGE was already a mature engine that held a renderer, physics, audio, networking, animation, and a scripting language.

RAGE has used some outside software as well. In GTA IV, a program called euphoria simulated a character’s body and muscles, so a fall was worked out as it happened instead of replayed from a recording. Parts of the physics library Bullet were built together with Rockstar and merged into RAGE.
How GTA Works#
While you play, your screen is redrawn many times each second. Each picture is called a frame. At a steady 30 frames per second, a new frame is due every 33 milliseconds. If the processing work misses the deadline, the frame comes late, and you keep seeing the last picture a little longer.

The CPU running GTA VI has a few different tasks.
First, the simulation of the world. Here, we see a test on an Xbox Series X by Digital Foundry. A character walks through an airport crowd at 30 FPS. Then the character fires a gun into the air, which makes the pedestrians run for the exits, which in turn makes the FPS fall into the 20s. This is because the fleeing inhabitants take more work to simulate than the walking ones.
Second is the physics. If you blow up a car, its wheels and doors fly off as separate pieces. The CPU needs to work out the path of each projectile. In the tests, fast crashes often show lower FPS.
Third, the map. GTA VI is a download of up to 212 gigabytes, but while you play, it has to fit in the console’s memory. A PlayStation 5 holds 16 GB of RAM. So the map has to load as you move, which is called streaming.

The streaming solution is older than RAGE. For example, GTA III already streamed its city from the disc. In fact, its makers worried that all that disc movement would wear out home consoles. GTA III’s first island originally had a long main road. At high speeds, the game struggled to load all the buildings along it. So the road layout was changed to slow you down. In other problem spots, cars got about 5% more air resistance. Similarly, in GTA VI, frames can come late as you accelerate, because the CPU helps load the map.
Last is the light. GTA VI lights its world by following rays of light through the scene, which is called ray tracing. The GPU calculates these traces. But keeping the scene up to date as cars and people move can take a lot of CPU power.
On the other hand, the GPU running GTA VI has two main jobs: drawing each picture and tracing the rays of light. The GPU work is unlikely to be the bottleneck for GTA VI because as consoles evolved from the PS5 to the PS5 Pro, the GPU got much better, but the CPU stayed roughly the same chip.

So, for example, at a targeted 60 FPS, the same work would need twice the processing speed for both CPU and GPU. The GPU can catch up with that target, but the CPU is the main limit.

Rockstar could give you an emptier world, which would mean less CPU work, but they don’t want to compromise that. Take notes if you want to develop a similar game. That’s a free lesson from Rockstar telling you what you should be caring about in your product.
How GTA Works on PC#
Now that we have some understanding of how GTA VI works on consoles, let’s try to understand how these projects could port the game to PC so fast. AI tools are a big help, obviously, but the task is still not so easy from the outside. Let’s go from the easiest to the hardest problems to tackle along the way.

First, the console’s CPU needs almost no emulation. The Xbox Series has the same kind of CPU as a PC has, so the leading versions run the game’s own code natively. On Intel processors, you need to imitate a few CPU instructions that only AMD processors have, but that wasn’t too much work.

Parts of the console’s system are rebuilt. These projects work like Wine or Proton, the tools that run Windows games on Linux.

They load the game into a Windows program. Windows answers some of the game’s requests to the console. You also have to write your own code for the rest: the player, saved games, files, sound, and Xbox’s graphics interface.
The graphics programs are translated. GTA VI ships about 25,000 small programs for the graphics card, already built for the console’s AMD chip. The projects translate them for PC graphics cards. This is a relatively big task.

But the real challenge is the memory. On the console, both CPU and GPU share one memory. A PC with a graphics card has two separate memories. Every frame, the projects copy what changed from one to the other.
This communication cost, which does not exist on the consoles, can be even more than half of all work for each frame.

Apple Macs have unified memory. Do you think it would be easier to port the game there?

GTA Engineered#
We covered how GTA VI might be working at a very high level, but RAGE is a closely kept secret. Even if it were to be open source, it could take years to understand the complexity behind it. One thing is for certain: GTA VI itself is an incredible engineering achievement that pushed the consoles to their absolute limit.
Footage: Adrianus, Digital Foundry, Dreamscape Gaming, DubStepZz, GRANDOS, Hobby Cantina, Ice’s Gaming Vault, Isaac4K Gaming, LKG21, PhysicNation, and Robot89. Proton logo: ProtonLogo.jpg, Valve Software & Codeweavers, CC BY-SA 4.0, keyed and cropped. Wine logo: WINE-logo.svg, Joel Holdsworth, from Jon Parshall’s design, GNU LGPL.
