UK | EN |
LIVE
Авто 🇺🇸 США

Dev rewrites GTA 3 source code to reveal what Rockstar was hiding and show how Liberty City fit on a PS2

GamesRadar dustin.bailey@futurenet.com (Dustin Bailey) 0 переглядів 4 хв читання
Dev rewrites GTA 3 source code to reveal what Rockstar was hiding and show how Liberty City fit on a PS2
GTA 3 protagonist Claude walks through Liberty City with a shotgun in hand
(Image credit: Rockstar Games)
Share this article 0 Join the conversation Add us as a preferred source on Google Newsletter Subscribe to our newsletter

Grand Theft Auto 3 was not the first open-world game, but it laid a blueprint that the industry is, in many ways, still following to this day. Urban environments at the scale of Liberty City were practically unheard of when GTA 3 hit PS2, but Rockstar North – then known as DMA Design – managed to squeeze it all inside some impressively tiny memory constraints. Now, a dev has rewritten the game's source code to demonstrate how it all works.

The PS2 has just 32MB of memory to work with, and according to Mark Brown, the game journalist turned YouTuber turned game dev behind Game Maker's Toolkit, the assets that make up GTA 3's Liberty City constitute around 130MB of data. The devs split the city into three different islands, which each load separately, but even the opening island of Portland still features somewhere in the neighborhood of 40MB-50MB of assets.

Latest Videos From How Rockstar fit an entire city into PlayStation 2 memory - YouTube How Rockstar fit an entire city into PlayStation 2 memory - YouTube Watch On

Simple enough in concept, but it's a magic trick that's effectively invisible while you're playing. So, to demonstrate how it works, Brown "got the GTA 3 source code," then "rewrote several sections of the program," and "compiled a brand new executable." His new version of the game, which you can see in the video above, demonstrates exactly how the streaming works, and it's very fun seeing small chunks of Liberty City pop in and out around the player's location.

"Now you can see the trick: how Grand Theft Auto 3 loads and unloads a small number of assets into memory as you move around Liberty City," Brown explains. "It secretly builds the world in front of you, and it silently deletes the world behind your back. Basically: instead of trying to fit a whole city into memory, Rockstar instead built a moving window which shows just enough of the city to make the illusion work."

Of course, this is a very simple explanation of how it all works, and one that ignores all the problems the devs had to solve along the way. For example: wouldn't players notice the assets pop in around them as they move? To solve that, the devs implemented lower-detail versions of the assets that appear in the distance, turning into the regular models as you get close. That, of course, is another technique still widely used in modern games.

The full video goes into many of the other behind-the-scenes problems that Rockstar solved, and is well worth your time if you're interested in the technical makeup of an all-time classic. Many of the tricks the devs used to make GTA 3 work weren't unheard of even in 2001, but the game that resulted was such a massive success that the entire industry would soon be following its lead. With GTA 6 on the horizon, that legacy is impossible to ignore.

Sign up to the GamesRadar+ Newsletter

GTA 6 was delayed to avoid crunch, claims Take-Two CEO, comparing notoriously crunchy Rockstar to college: "You do your homework, you don't pull an all-nighter."

TOPICS CATEGORIES
Dustin Bailey
Dustin BaileyStaff Writer

Dustin Bailey joined the GamesRadar team as a Staff Writer in May 2022, and is currently based in Missouri. He's been covering games (with occasional dalliances in the worlds of anime and pro wrestling) since 2015, first as a freelancer, then as a news writer at PCGamesN for nearly five years. His love for games was sparked somewhere between Metal Gear Solid 2 and Knights of the Old Republic, and these days you can usually find him splitting his entertainment time between retro gaming, the latest big action-adventure title, or a long haul in American Truck Simulator.

View More

You must confirm your public display name before commenting

Please logout and then login again, you will then be prompted to enter your display name.

Logout LATEST ARTICLES
Поділитися

Схожі новини