The driving, crime, and general mayhem game Grand Theft Auto V is something of a phenomenon that has lasted for the last seven or more years. Whether following the in-game missions, driving around like a hooligan for fun or performing crazy stunts, the depth of detail in its landscapes and the continual improvements to gameplay that have arrived over the years have assured it a massive following across multiple platforms. The game is not without its problems though, one of which is an unreasonably long loading time for its online version. This annoyed [T0st] to the extent that it was worth the effort of looking under the hood to find out where the problem lay.
It was evident that for PC users the effect varied depending on the hardware present. Furthermore AMD processors seemed worse-hit than Intel ones, and indeed they found an entire core maxed out by a couple of processes during the wait. Some diagnostics and disassembly led the trail to some string processing code which was identified as a JSON parser. This was not simply parsing the JSON but also performing a check for token uniqueness in an extremely inefficient manner, causing the whole process to be extremely slow. Sone nifty patching in a DLL containing a much more efficient function with a cache for unique values saved the day, and delivered an impressive 70% speed-up. It’s to be hoped that the game’s developers will take note, and a future GTA V update will deliver a fix.
Driving a car from a third-person viewpoint in a game like GTA V is a hoot. In real life though, not so much.
Thanks [Thanatos Erberus] for the tip.
Rockstar, please fix.
> Sone nifty patching …
“Sone”? ;-)
SONE
noun
“a subjective unit of loudness equal to that experienced by a normal person hearing a 1 kHz tone at 40 dB”
that clears up everything
It has to do with HaD readers hating a certain Japanese electronics/rootkit mfgr.
“Whether following the in-game missions, driving around like a hooligan for fun or performing crazy stunts, the depth of detail in its landscapes and the continual improvements to gameplay that have arrived over the years have assured it a massive following across multiple platforms. ”
Everybody forgets the soundtrack.
Ah yes, the blessing of a forgettable soundtrack, nothing earworming you all day. ;-)
It peaked at VC!
I only play storymode becuz online is boring
I just gotta love how they wasted years of lifetime of their customers (in total) by not fixing this bug.
Sometimes I just cannot go make a coffee or spend the time waiting to connect better.
What’s wrong with GTA 2? All these consumerism..
This is an excellent view into out-of-source profiling and the pointless of obfuscating decompiled code when running it removes the obfuscation anyway. If they are smart enough to use and understand the decompiler, doing it in memory is just an annoyance than a deterrent. Fascinating stuff and my money is on R* either using a library or some bad copy/posted code that caused this.
Another thing that is slow is my willingness to play any version of GTA.
Would you be willing to share your fixes as a mod?