Someone has figured out how to reduce GTA Online's load times by almost 70%

GTA Online
(Image credit: Rockstar)

Grand Theft Auto 5's loading times have been the butt of many a joke over the last seven years—even the beefiest of PCs will leave players twiddling their thumbs while that blonde lady throws a peace sign at her phone for the millionth time. The agonising wait has led one savvy player to delve into the game's code, and with some tweaking has managed to reduce the loading times by almost 70%.

GitHub user tostercx has uploaded the fixed code, though they do warn that it's more of a proof of concept and not intended for casual use. They were also kind enough to provide a breakdown of the entire process.

The lengthy loading times—tostercx experienced a six minute wait for GTA Online to boot up—are, in part, attributed to some terribly optimised code and a 10MB JSON file containing 63,000 item entries. Every time an item is found, the check then runs again… and again. tostercx estimated that this leads to around 1,984,531,500 checks.

This, along with the fact the game was only loading from a single core on tostercx's CPU, appear to be the biggest bottlenecks. But after a couple of fixes that optimised the code, tostercx was able to reduce the loading time to a much more digestible one minute and 50 seconds, a 69.4% improvement on the original time. 

It's a huge reduction, which tostercx claims shouldn't take "more than a day for a single dev to solve." They even leave some suggestions for Rockstar, ones which hopefully will be acted on—though it's doubtful given how long players have put up with long load times already.

If you're still diving into Los Santos, why not use those impossibly long loading times to check out some of our GTA Online guides, like how to make money quickly or the speediest cars that deserve a place in your virtual garage?

Image

GTA 6: All the rumors
GTA 5 mods: Revved up
GTA 5 cheats: Phone it in
San Andreas cheats: All the codes

PRODUCTS
Mollie Taylor
Features Producer

Mollie spent her early childhood deeply invested in games like Killer Instinct, Toontown and Audition Online, which continue to form the pillars of her personality today. She joined PC Gamer in 2020 as a news writer and now lends her expertise to write a wealth of features, guides and reviews with a dash of chaos. She can often be found causing mischief in Final Fantasy 14, using those experiences to write neat things about her favourite MMO. When she's not staring at her bunny girl she can be found sweating out rhythm games, pretending to be good at fighting games or spending far too much money at her local arcade.  

Read more
Michael sunbathing in GTA V
3 years later, GTA 5’s Enhanced edition finally comes to PC, and it’s somehow 22GB smaller than GTA 5 Cool Original flavour
Grand Theft Auto 5
GTA 5's next-gen update finally has a March PC release date a mere 3 years after it prettied-up the console versions
GTA 5 Enhanced
Grand Theft Auto 5 Enhanced is a bitter-sweet return to Rockstar's money-making machine
Grand Theft Auto 5
How to transfer your GTA 5 save file to GTA 5 Enhanced and accept Rockstar's Online Policies if needed
GTA 5
It's time we talked about how wild it is to be a pedestrian in GTA 5
GTA 5 characters
A full list of every GTA 5 cheat, code, and phone number for spawning the best vehicles or flaming bullets
Latest in Grand Theft Auto
GTA 5 characters
GTA 5 publisher takes legal aim at account-selling site for allegedly raking in 'millions in revenue', while recruiting hackers to keep its cogs turning
GTA 5 Enhanced
Grand Theft Auto 5 Enhanced is a bitter-sweet return to Rockstar's money-making machine
Grand Theft Auto 5
How to transfer your GTA 5 save file to GTA 5 Enhanced and accept Rockstar's Online Policies if needed
Grand Theft Auto 5 Enhanced screen - Trevor setting fire to somebody's big dumb truck
Grand Theft Auto 5 Enhanced launch is going poorly or well depending on how you look at it: It's got a 'mixed' rating on Steam and is one of the most-played games
GTA 5 Enhanced Edition
What's the difference between Grand Theft Auto 5 Enhanced and Legacy?
GTA 5 money
The Grand Theft Auto series has now sold over 440 million copies, and say g'day to Rockstar Australia
Latest in News
Gabe Newell in a Valve promotional video, on a yacht.
Go ahead and complain the discounts aren't as steep as they used to be, but Steam just had its biggest year ever for seasonal sales
Valve Steam Deck OLED handheld PC
'The future of hardware at Valve is bright': Valve celebrates the success of Steam Deck and Steam OS
Key art of the videogame Lunacid, showing a pale, long haired knight in purple armor contemplating a purple, flaming sword surrounded by the different phases of the moon.
One of my favorite indie RPGs is getting a follow-up made with FromSoftware's 25-year-old Super Mario Maker for first person dungeon crawlers
Kingdom Come: Deliverance 2 image - Henry riding a pink and blue striped horse while holding a fish
Kingdom Come: Deliverance 2 now has Steam Workshop support, and of course one of the first mods lets you adjust the 'jiggle physics'
Still image of Bastion holding a bird, taken from Microsoft's Copilot for Gaming reveal trailer
Microsoft unveils Copilot for Gaming, an AI-powered 'ultimate gaming sidekick' that will let you talk to your console so you don't have to talk to your friends
Erenshor - A player and two simulated MMO party members stand on a plateau in front of a yellow landscape
This RuneScape-looking 'simulated MMORPG' has all the nostalgia without the drama because all the other 'players' are NPCs