EVGA

Programmer cuts GTA V's load times by almost 70%

Author
rjohnson11
EVGA Forum Moderator
  • Total Posts : 81506
  • Reward points : 0
  • Joined: 2004/10/05 12:44:35
  • Location: Scotland, UK
  • Status: offline
  • Ribbons : 72
2021/03/02 01:03:34 (permalink)
Programmer cuts GTA V's load times by almost 70% - Rockstar needs to fix its game's poor programming | OC3D News (overclock3d.net)
 
GTA Online's loading times are long, regardless of how powerful your PC is. The game world is big, complex and constantly updated, but should that mean that loading times should remain long even though the game is almost six years old on PC?  Last weekend, a programmed called T0ST discovered a way to shorten GTA Online's initial loading times by almost 70%, reducing the game's loading times from exactly 6 minutes to 1 minute and 50 seconds. This was using a system with an AMD FX-8350 and SSD storage. With GTA Online receiving continual updates and new next-generation version on PlayStation 5 and Xbox Series X, Rockstar should be looking for ways to make GTA V load faster and make the best possible use of the latest gaming hardware. This should be true for both PC and consoles. 
 
The short-hand summary of the problem is that GTA V has a single-threaded CPU bottleneck, struggles to work through a 10MB JSON file and then wastes time with a slow data checking system that T0ST claims is "useless". 

With AMD's FX-8350 being a weak processor by today's standards, offering poor single-threaded performance when compared to the Intel processors of that era, T0ST issues are less prevalent on more modern systems. That said, the boosted single-threaded performance of modern CPUs will still need to waste a lot of time on these same processes, making T0ST fixes hugely valuable for Rockstar and its oncoming GTA Online development efforts. The first of GTA Online's problems is that it struggles to work through a 10MB JSON file that contains 63,000 items. Strangely, GTA V reads this file 63,000 times while loading GTA Online, which adds up to a lot of wasted CPU time. While each read is incredibly fast, skimming though the file 63,000 times quickly adds up to a lot of wasted CPU cycles and creates longer than necessary loading times. 

GTA Online's second issue is that the game also checks its calculations for repeated values, even though GTA Online's JSON list contains no repeated items. With the JSON list being 63,000 values long, T0ST believes that GTA Online needs to conduct 1,984,531,500 cross-checks, all of which are appear to be useless. All entries in this file are unique, removing the need for this cross-check entirely. To reduce GTA Online's loading times by almost 70%, T0ST created two fixes that mitigate these major issues, both of which should be considered by Rockstar games. With Grand Theft Auto 5 having over 100,000 concurrent players on Steam every day, the total time-saving benefits would be monstrous. 

If 100,000 GTA Online players could load the game 1 minute faster, the total human time savings would be 69.4 days. T0ST saved over four minutes of time when loading GTA Online with his fixes, making the time saving potential even larger for those with weaker systems. 
 
T0ST's fix is comprised of two parts, both of which are described on his blog. The first is a bypass for the game's duplication check, removing the unnecessary check from GTA Online's loading times. This dropped GTA Online's loading times from six minutes to four minutes and 30 seconds. 

The second fix is a patch to the game's JSON parser, which caches the start and the length of GTA Online's JSON file. This change allows GTA Online to read through the file once and see the answer repeatedly without re-reading the file. Instead of reading the file 63,000 times, this fix allows the file to be read only once. This fix reduced GTA Online's loading times from 6 minutes to Two minutes and 50 seconds. 

When both of these fixes are combined, GTA Online's loading times can be reduced from six minutes to one minute and 50 seconds. The code for these fixes is available on Github, though GTA Online players shouldn't use the code as it could be seen as cheating by GTA Online's anti-cheating system. That's why Rockstar needs to implement these fixes themselves. 
 
GTA Online remains incredibly popular on PC, and T0ST claims that his fixes could be implemented by a single Rockstar developer in a single day. With this in mind, Rockstar should see implementing this fix as a no-brainer. Shortened loading times will bring some PC gamers back into the world of GTA Online, and existing players will benefit from having less waiting time and more gaming time. 

If these fixes can also be brought over to the console and next-generation console versions of GTA Online, the combined human time savings of these fixes would be even more considerable. Faster loading times for the next-generation versions of GTA Online would be a big improvement for fans of the title. 
 
I also agree that more work needs to be done to optimize the game. 

AMD Ryzen 9 5950X,  Corsair Mp600 Pro M.2 2TB, 128GB DDR4  Crosshair VIII Hero, RTX 3080 XC3,  Associate Code: H5U80QBH6BH0AXF

#1

6 Replies Related Threads

    aka_STEVE_b
    EGC Admin
    • Total Posts : 15974
    • Reward points : 0
    • Joined: 2006/02/26 06:45:46
    • Location: Wouldn't you like to know....
    • Status: offline
    • Ribbons : 59
    Re: Programmer cuts GTA V's load times by almost 70% 2021/03/02 04:29:14 (permalink)
    modders always impress ....

    AMD RYZEN 9 3900X  12-core cpu~ Gigabyte X570 Aorus Elite board ~ Nvidia RTX 3080 FE~ G.SKILL Trident Z NEO 32GB DDR4-3600 ~ Phanteks Eclipse P400s red case ~ EVGA SuperNOVA 1000 G+ PSU ~ Intel 660p M.2 drive~ Crucial MX300 275 GB SSD ~WD 2TB SSD ~CORSAIR H80i v2 cooler ~ CORSAIR Dark Core RGB Pro mouse ~ CORSAIR K68 Mech keyboard ~ HGST 4TB Hd.~ AOC AGON 31.5" monitor 1440 @ 144Hz ~ Win 10 x64 
    ................ GET UP TO A 10% DISCOUNT ON PURCHASES BY CLICKING ....VVVVVVVVV.........


    #2
    donta1979
    Omnipotent Enthusiast
    • Total Posts : 14868
    • Reward points : 0
    • Joined: 2007/02/11 19:27:15
    • Location: In the land of Florida Man!
    • Status: offline
    • Ribbons : 64
    Re: Programmer cuts GTA V's load times by almost 70% 2021/03/02 09:14:32 (permalink)
    Yup, its why Rockstar and other good studios hire modders. Helped a few get into the AAA industry before I retired. A massive talent pool that is not given a chance normally. Mods help open the door.

     
    Heatware   My Old School Drivers Updating/Installing Guide 
    My Affiliate Code: 1YXDGWSWU7 
    Associate Code: ZHHBRVZYGOXUIIZ

    Retired from the AAA Industry at 40 Living the Dream or at least trying to. Haha
    USAF, USANG, US ARMY Combat Veteran

    #3
    transdogmifier
    CLASSIFIED Member
    • Total Posts : 4885
    • Reward points : 0
    • Joined: 2003/09/05 14:26:21
    • Location: Orlando, Fl
    • Status: offline
    • Ribbons : 11
    Re: Programmer cuts GTA V's load times by almost 70% 2021/03/02 09:22:44 (permalink)
    What they need to do is stop implementing the need for their 'launcher' as well as steams.
     
    Use steam (or better yet, none) and let me be. I'm tired of all this data mining..
     
    and then they need to implement these fixes..heh
     

    AMD Ryzen 5950x
    Coolermaster ML360R RGB
    Asus ROG Crosshair VIII Dark Hero
    eVGA GeForce RTX 3090 FTW3 Ultra Gaming (Hybrid kit on it)
    Asus ROG Swift PG43UQ 4k Monitor
    eVGA 1600W Supernova T2 PSU
    32GB Corsair Vengeance Pro 4000MHz (4x8GB)
    Corsair MP600 Pro 2TB (Boot)
    Corsair MP600 2TB (Games/Data)
    Phanteks P500A Case
     
    My Affiliate Code: 8ST3SZQYI7
    My Associate Code: J4T7H4SOBIGFO8F
    #4
    donta1979
    Omnipotent Enthusiast
    • Total Posts : 14868
    • Reward points : 0
    • Joined: 2007/02/11 19:27:15
    • Location: In the land of Florida Man!
    • Status: offline
    • Ribbons : 64
    Re: Programmer cuts GTA V's load times by almost 70% 2021/03/02 12:35:50 (permalink)
    transdogmifier
    What they need to do is stop implementing the need for their 'launcher' as well as steams.
     
    Use steam (or better yet, none) and let me be. I'm tired of all this data mining..
     
    and then they need to implement these fixes..heh
     


    GOG Galaxy is the way -.-
     

     
    Heatware   My Old School Drivers Updating/Installing Guide 
    My Affiliate Code: 1YXDGWSWU7 
    Associate Code: ZHHBRVZYGOXUIIZ

    Retired from the AAA Industry at 40 Living the Dream or at least trying to. Haha
    USAF, USANG, US ARMY Combat Veteran

    #5
    atfrico
    Omnipotent Enthusiast
    • Total Posts : 11822
    • Reward points : 0
    • Joined: 2008/05/20 16:16:06
    • Location: <--Dip, Dip, Potato Chip!-->
    • Status: offline
    • Ribbons : 25
    Re: Programmer cuts GTA V's load times by almost 70% 2021/03/02 13:55:03 (permalink)
    donta1979
    transdogmifier
    What they need to do is stop implementing the need for their 'launcher' as well as steams.
     
    Use steam (or better yet, none) and let me be. I'm tired of all this data mining..
     
    and then they need to implement these fixes..heh
     


    GOG Galaxy is the way -.-
     


    +1 GOG Galaxy trying something new

    Those who abuse power, are nothing but scumbags!
     The challenge of power is how to use it and not abuse it. When you abuse it, it reverses on you and it hurts you.The abuse of power that seems to create the most unhappiness is when a person uses personal power to get ahead without regards to the welfare of others, people are obsessed with it. You can take a nice person and turn them into a slob, into an insane being, craving power, destroying anything that stands in their way.
    #6
    FearTehPanda
    Superclocked Member
    • Total Posts : 101
    • Reward points : 0
    • Joined: 2020/12/16 22:50:15
    • Status: offline
    • Ribbons : 0
    Re: Programmer cuts GTA V's load times by almost 70% 2021/03/05 10:43:51 (permalink)
    That’s pretty interesting, I always get kicked after loading and right back to a long load time lol
    #7
    Jump to:
  • Back to Mobile