I tried playing GTA online once and actually gave up due to the loading times (on a top end gaming rig) I can't believe I'm alone, I wonder how much this cost rockstar
I cut GTA Online loading times (2021)
21–30 of 221 posts
Re: I cut GTA Online loading times (2021)
#22I tried playing GTA online once and actually gave up due to the loading times (on a top end gaming rig) I can't believe I'm alone, I wonder how much this cost rockstar
Re: I cut GTA Online loading times (2021)
#23Clickbait title ;) The problem wasn't strlen(), that just showed up at the bottom of the call stack when profiling. IIRC the actual problem was an exceptionally dumb JSON parser combined with parsing a pretty big JSON file (which probably also grew much bigger than the original developer working on that feature anticipated). Edit: the title has been edited in the meantime, originally it was something about strlen() b…
Re: I cut GTA Online loading times (2021)
#24Earlier quoted context omitted.
Yes I'm aware, that article basically triggered the official patch. Would be interesting to know if the Rockstar patch provided a further speedup though.
The author provided an update at the bottom. His hack cut the tone from 6m to 1m 30s. The official rockstar patch took it down to 1m 53s. It’s MUCH better but still off the mark by a bit.
Re: I cut GTA Online loading times (2021)
#25There’s an implicit story here which I find quite sad that not a single developer at Rockstar in the prior eight years had the autonomy or bandwidth to discover and fix this themselves.
Every company talks about wanting to have driven curious employees to solve complex issues or challenges but you just get stomped with a boot to your face if you do anything outside your lane or simply ask why.
It’s also worse because I’m starting to realize how lucky I was to be raised as a curious individual from my parents who never went to college but at least were curious themselves about different things (pottery, soldering, gardening).
The quote “Curiosity is insubordination in its purest form” suddenly has a different context when working for a company.
Re: I cut GTA Online loading times (2021)
#26I tried playing GTA online once and actually gave up due to the loading times (on a top end gaming rig) I can't believe I'm alone, I wonder how much this cost rockstar
My exact same experience. As to what it cost, in the old world paradigm I'd say "nothing, we already bought the game", but I guess these days there's probably a decent argument for a cohort of people who are too impatient to wait to get into the game and who pay extravagant sums of real-world money to get in-game items immediately.
which is kinda hard if the game takes 30 minutes to load
Re: I cut GTA Online loading times (2021)
#27Earlier quoted context omitted.
All true, but replacing the strlen() with a caching version is just fixing the symptoms (of calling strlen too often... but the only realistic solution without the ability to recompile the game - so kudos to the author to come up with this hack). I bet the "official" patch by Rockstar simply dropped in a less embarassing JSON parser library :)
You don't think that it's a bigger WTF that sscanf implementation calls strlen when parsing a number (when it iirc even ignores any non-digit characters for the actual number parsing so no reason it couldn't terminate that part w/o the extra call)?
{"foo": "bar"}
Is potentially turning into 5 different tokens: {
"foo"
:
"bar"
}
After each token the "state" of sscanf is being discarded and each invocation of sscanf is independent. The API simply isn't descriptive enough to know that a string is immutable and hasn't been changed and there are certainly many valid use cases where one might be re-using the same char[] buffer with different contents.Re: I cut GTA Online loading times (2021)
#28Re: I cut GTA Online loading times (2021)
#29There’s an implicit story here which I find quite sad that not a single developer at Rockstar in the prior eight years had the autonomy or bandwidth to discover and fix this themselves.