1032 points · by mmhsieh · 5y ago · 321 comments
Rockstar awarded them 10k for it.
How I cut GTA Online loading times by 70% - https://news.ycombinator.com/item?id=26296339 - Feb 2021 (697 comments)
On one side, yeah - the work he did will be worth a lot more than $10k to Rockstar. They've had lots of people complain about & stop playing GTA online because of the slow loading times. And this issue would probably never be found or fixed otherwise.
On the other hand, he did it for fun (without any expectation of reward). $10k isn't massive and we can quibble over the reward amount, but its delightful that companies are rewarding people at all for fixes like this. A few years ago he'd be lucky to get sent a GTA t-shirt. Its definitely the right direction we should be moving in - bug bounties are a thing in security, and we should be celebrating any movement toward rolling them out in other circumstances.
Still I’d give him more for the significance and PR. But these things tend to be fixed rather than subjective for a reason.
that's insulting tbh
In normal people's terms, if somebody did hours of labor that gained you >$10k, would you give them $10? That would be insulting, yet that's what Rockstar did.
Most people don't: <https://mkorostoff.github.io/1-pixel-wealth/>
The original post, analysis and the actual fix of this bug is beyond impressive. Strangely, Rockstar awarding $10k for that is like someone searching for lost treasure, identifies historical references which leads to finding a ton of it and somehow leaves with 1/8th of it, even though they did 98% of all the work.
For that detailed effort, analysis and with a fix, I'd say that is worth around $80k. At least Rockstar was generous enough to award them in the first place; so I'll give them that.
No good deed goes unpunished. Rockstar went out of their way to thank this person and send them a check equivalent to several weeks of median developer salary. Can we not shame them for this goodwill gesture?
$80K would be on the order of half of the annual salary of most developers outside of SFBA.
Lol, I'm a lead C++ programmer in the UK and I don't make that much. It's American salaries as a whole that are completely stratospheric.
Better than nothing I guess, but suggesting that it's OK to exploit people because of where they live is kinda crass. This is an industry where you are (should be) valued based on what you can create, not where you live.
To flip this around, if this guy lived in Haiti would you say it would have been fine to give him $1k because welp, cost of living is even lower there? Insulting.
And again they had years and years they could have fixed this themselves, at in-house prices if they wanted to. They had to be shamed into it by a third-party developer pointing out their "could be fixed in a day by a single developer" tier mistakes. O(n^2) algorithms causing minutes-long load times, repeatedly reported by thousands of customers across the game's 10+ year lifespan.
It's like giving a waiter a 1% tip. Is it nice that you gave them a tip at all? I guess. Technically nobody asked them to get you your food. Is it a reasonable fraction of the value delivered by customary standards? Not really. And in this case it's like a 0.01% tip.
If the author of the bug fix is indeed from Latvia (.lv), the median annual income of a senior software engineer in the Baltic states is currently around 30K-40K after taxes.
I can't even get close to my current salary in my current unrelated field ($85k) to even consider a career switch. Are the jumps from junior to mid-level/pm that high? I am a PM in construction so that may end up being my path.
Disclaimer: I don't live in a big city like Tokyo.
Wow, I need a raise.
I don't think this line of thinking is helpful. Should Amazon increase the price of their VMs if you made more money with them? Should a doctor charge a lawyer a higher price for a flu shot because their time is worth more?
Of course not. Because in all these cases, the clients would just go buy someone else's service.
Of course it is helpful to consider the value of the work you produce, and you can use that in negotiations. But you are not entitled to a higher rate just because your client is big or successful.
If the developer had offered a two day consultation for $80.000 to Rockstar they would most likely have declined and said, sorry, for that money we can hire someone else to do a lot more performance improvements.
If you want to get paid based on value created, you need to negotiate. But you don't have a moral right to get more money for the same effort just because your client is rich.
Do you think the fix is actually worth 80k in terms of additional revenue for Rockstar? I wouldn't be so sure. If not though then no it's not worth $80k.
"I'm a developer and I'm paid a lot to do my job, therefore everything I do must be very valuable" is not the right line of reasoning to use here.
One should not hold people responsible for acting "non-perfectly". Any behavior exceeding "average" should be met with admiration and gratitude, average behavior with "respect and appreciation", and anything somewhat sub-average with "mild disappointment but no surprise and some understanding".
Having a company spend money they are technically obligated to allocate to share holders, to a developer who, without any pre-existing contract or even verbal or commonlaw understanding, helped them, is way beyond "average response" for modern businesses.
Please, don't hate on the vanishingly small number of counter-examples blazing a trail in this space.
Even traditionally mod friendly companies will tend to sweep in and either block any derivative work that's monetizing their improvements or else negotiate with the creators to take the lion's share and republish the content under their company label. There are a bunch of examples of this but Counter Strike is a pretty famous one.
That all said, it's pretty hard to argue that making minor alterations to a product should allow me to resell it as a novel work. Fan Fiction exists - but it doesn't (legally) exist as taking a novel and taking on a few new chapters then reselling it without giving a portion to the original author.
You are forgetting the game which Rockstar made. A loading times fix is not 98% of the final product.
Frankly for an introvert with no public online presence or audience that’s just not very appealing. There’s easier ways for software developers to make $10k: just wait for two paychecks.
This bug has existed for years and has lead to hundreds, if not thousands of people quitting the game citing this exact reason yet Rockstar did nothing.
I think "shameful" is really more appropriate. It's not like they simply didn't know this existed. I think they have known all along it existed and didn't give 2 shits to fix it.
You risk making discourse difficult when you continue punishing people who are attempting to do the right after doing wrong for a while.
On the other hand, a few days of doing the absolute bare minimum of quality control doesn't undo a decade of actively hostile practices. They're still very very deeply in the red when it comes to their relations with the playerbase and for good reason.
Paying $10k to the person who documented this bug is a good start, but you need to do a whole lot of work to make up for the impressions caused by that kind of prolonged systemic negligence.
> I think "shameful" is really more appropriate.
When you make an inadvertent mistake in the future, karma is coming for you: people will speculate that you "didn't give 2 shits".
This bug existed for a very long time and was the #1 outcry from gamers. It is well documented all over the internet.
Every company I’ve ever worked at and every code base I’ve ever worked on would have made this a #1 priority. If it were a technical limitation of the devs I would agree it is “embarrassing” but this was not outside of their ability.
I simply don’t blame the devs, I blame management. Management should have allocated the resources to fix this truly game breaking bug but they didn’t because money was still flowing. Is it any coincidence that ads played during the 6+ minutes you would wait to get into a game?
> This one escaped, because stuff happens.
No, they mostly just don't listen to their players when compared with other game companies.
Sure, ideally there would be someone internal advocating for a fix like this on behalf of customers. But Shameful isn't the right word. It's a miss like any other.
I personally feel like the magnitude of this -- especially compared to how simple the solution is -- makes it a miss that's really much more extreme than most others.
EDIT: Though I agree that "shameful" isn't the right word to use. Rockstar wronged themselves much more so than any other party.
If the fix had been some super application specific super obscure thing, we would all understand.
Instead... the bug is easily describable to anyone who knows what JSON is and the fix is “don’t parse JSON the slow way”.
So I think some of the leniency afforded to the devs may be misplaced. Then again, hindsight and all that.
That said, they're all things like "refactor the frobnicator code so it's more obvious what it does" and "make templating system log changes to server". Nothing on my list says "Look in to that major performance issue that literally thousands of customers complain about every single day". That stuff gets sorted immediately.
Since switching the file format is probably some work, maybe involving many differnt teams and network protocols, the bug was closed because it too much efford.
And then, whenever somebody complained, the old bug was referred which unfortunately never got a proper analysis.
Sad, but I saw this happening many times in the past in some projects. Since the old and wrong analysis will be in many powerpoint slides and heads, it is incredible hard to argue against or get even time to work on such a problem. Usually, you need someone who just takes some time form other projects without telling anyone and ninja fixes the problem to solve it.
Just as I'm certain that this unsolicited 3rd party fix was used to settle some old scores.
Corporate politics is a blood sport.
And if they didn't care at all given what you say then why would they care to implement a fix for it all these years later?
The game probably has tens of millions of lines of code.
I'm glad they shipped. If they can enhance the startup time, great, bonus for them. Additional credit for thanking the third party that uncovered the perf issue.
I also think it's relevant to note that GTA V has sold 140 million copies, 20 million last year alone, and Rockstar makes hundreds of millions of dollars a year on the title. For a multi billion dollar product to have a known, relatively simple, problem is shameful. I don't know what went wrong, but I don't think it was the competency of engineers or the complexity of the problem that allowed this to fester.
[0] https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times...
Yes, they should be ashamed of this.
I'm quite surprised they are even going to patch the game because the level of "we dont give a shit" I thought they had about this issue certainly would have prevented them from doing anything now.
1: Some dev gets tasked with implementing the system, at the time there probably wasn't that many ingame purchases so that 10mb json maybe was a 500k file tops? So going by the O(N2) factor it would've buzzed by in a second (probably faster since being smaller there would've been more cache hits giving another factor or 2). Being at about a second or less they don't even consider optimizing it since it's not noticed among all other assets being loaded.
2: The content/ops teams adds more IAP over the years (it's a datafile so that devs don't have to implement everything), since they're adding big models,etc they don't notice too big changes and probably just chalk it up to bigger models,textures,etc.
3: Engine devs (those most often tasked or obsessive about optimizations) might be running a cut-down server for most testing (not noticing the huge loading time) and probably presume it's other assets if testing in a full env.
So in reality it's probably just an organizational oversight rather than "bad developers", now considering this public "shaming" they received they might actually place some people in an production optimization role for a while and optimize other parts if it's possible (the question is.. will they find it worthwhile to keep up in a longer period?).
“I want you to improve loading times whatever it takes”
Sometimes you’ve got to go hunting instead of fishing.
Which is BS tbh. Everyone makes mistakes.
I think with politicians and political appointees, it's a little different because that's very much a public trust. Nobody deserves to hold political office, they should instead be deserving of it by being ethical and having integrity.
Amen. And avoiding a culture of blame (taking inspiration from the NTSB) makes it much more straightforward to put systemic measures in place which reduce the impact of those mistakes. People still make mistakes at the same rate, but more mistakes get trapped and more negative outcomes can be avoided.
The vitriol of this discussion shows just how difficult it is to establish such a culture. People really want to see mistakes as evidence of moral inferiority.
Edit: an anecdote from the professor of my college's startup program (a hundred-millionaire former CEO/founder)- "never say sorry."
Yeah, it's always a tradeoff.
I worked at a non-tech fortune 500 for a few years and was able to see the inside of repair/warranty/disputes. These were very high ticket items and the brand was/is very highly regarded for after sales support.
In the employee handbook for repair support staff (the people communicating with clients about the status of their repair/claim) there was a passage similar to the below:
"Apologies MUST NOT acknowledge anything other than the customer's explicit feelings without written acknowledgment of fault from $MANAGER".
I asked a member of that team to decipher WTF that meant, and they showed me an example email. They were only allowed to apologise in the below way:
"Hi bob, we're sorry you feel our product is faulty".
I always found these weasel apologies infuriating in my personal life.
Well, this HN hate fest of a discussion certainly bears out that saying! The internet is a terrible place. You will get dragged mercilessly no matter what you do. The incentives are all towards sweeping mistakes under the rug.
I think the real advice is “don’t say sorry unless you actually mean it.” People see right through that, because your actions and follow through won’t match your words. But people seem to appreciate sincere apologies that come with substantive corrective action.
as-if that's the worst they could do. Suing the guy, pressing for charges with CFAA or DMCA anti-circumvention. There were far worse ways this could have gone.
Only the prosecuting attorney (someone employed by the government) gets to choose when and how someone is charged with a crime. The victim has no say whatsoever in the matter, and indeed the DA can charge someone even when the victim doesn't want them to, or decline to prosecute even when the victim requests it.
Most of the time when people simply use "press charges" this is what they mean. I specifically used "press for charges" to try to avoid such pedantry. I guess I failed.
[0]: https://www.gigaspaces.com/blog/amazon-found-every-100ms-of-...
How many people get to say something like, "Reduced GTA 5 load times by 70%"?!
Ya know on second thought, it's so unbelievable that he did this whole thing that I wouldn't be surprised if someone reading his resume thought he was bullshitting.
Might not put that one on the resume.
I don't think it's got anything to do with capitalism, we just tend to forget things quickly.
Millions of people play this game every day. This lone man, driven by his love of solving puzzles, is single handedly unlocking potentially hundreds of millions of hours of “lost time” across the globe.
[1]: https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times...
Once the vendor fixed the issue it shaved a few minutes off the install time that had previously just been a UI glitch (processing the large backlog of progress bar update messages).
Had a similar situation with an Electron app I worked on. App’s window was getting very stuttery at some point during a long-running operation done by a third-party library, even though it happened in a background worker thread and wasn’t supposed to block the UI (which simply showed the progress of the operation).
Turned out, that third-party library called my progress notifier function (in which I used Electron’s IPC to notify the GUI) on increments that were fairly spaced out most of the time, but really frequent during some operations. Mere overhead from IPC calls and GUI updates added up to a point where everything lagged, even though the operation itself wasn’t that intensive. I wrapped my progress notifier in a throttler, which I frankly should’ve done much earlier, and that solved it.
What's the correlation between being averse to spending time on less-fun aspects of the game (to the point that you'd pay Rockstar extra money to get only the more-fun time)... and being averse to waiting for long load times, when you just want to play a quick session of more-fun?
Given Rockstar's investment in a steady stream of new big-ticket in-game items, and their huge revenue from that, I wouldn't be surprised if the slow load times cost them many millions.
If I was a developer at Rockstar and played this game I would have have spent my own time to fix this problem just so that I didn't need to sit around and wait every time I played the game.
edit: Akchually, the DRY method of doing this would be to make a function like:
/* Remove this when it's time for a performance improvement! */
function Optimize(int N)
/* do stuff N times (so you can limit the amount of performance improvement) */
end
and then put that in the places you want to be able to optimize in the futureIt's why TurboTax is so darn slow and hard to use, wasting user's time.
Ironically the hardest thing I needed TT to do this year was handle my wash sales and it didn't even blink as it imported the 1099s. Wait, maybe it didn't handle them correctly... See what I mean? Now I better double check.
Cool fix, nonetheless!
Had they bothered to fix this early on as many of us begged them to do from day one of online's release, many of us would have stuck around far longer.
Oh well actually the shark card garbage coupled with ever-increasing item costs, as well as releasing the casino ~5 years late probably would have made me stop anyway.
Most companies won't do more due to competition or embarrassment.
https://www.folklore.org/StoryView.py?story=Saving_Lives.txt
"It went from Dilles Bottom, Ohio to Moundsville, West Virginia. It spanned nine hundred and 12 feet above the Ohio River. 12,000 people used this thing a day. And it cut out 35 miles of driving each way between Wheeling and New Martinsville. That's a combined 847,000 miles of driving a day. Or 25,410,000 miles a month. And 304,920,000 miles a year. Saved. Now I completed that project in 1986, that's twenty-two years ago. So over the life of that one bridge, that's 6,708,240,000 miles that haven't had to be driven. At, what, let's say fifty miles an hour. So that's, what, 134,165,800 hours, or 559,020 days. So that one little bridge has saved the people of those communities a combined 1,531 years of their lives not wasted in a fucking car. One thousand five hundred and thirty-one years."
(10 seconds)*(5 million)*(365) = 564.1 years
If I add on "/(human lifetime)", Wolfram Alpha uses 72.6 years, which it attributes to a 2019 UN estimate. ((10 seconds)*(5 million)*(365))/(human lifetime) = 7.775 lifetimesBut 72 years about sounds right for US 1983 Mac users, who were already closer to middle aged.
Glad to see Rockstar addressing this; I will try the update once it is released, and maybe I can play some online games without getting frustrated.
I mean the PC version was released one year later. Maybe by another team.
If you're interested feel free to reach out and I might be able to help you. Contact details in my profile.
glad to see I am wrong. many GTAO players will definitely be very happy once the new update is live.
Darn, I got the exact same issue ten years ago, with sscanf on Linux/glibc. The sscanf was forcing the huge XML mmaped file region to be entirely read.
The reason behind is that the glibc library was using some "smart" streams (to have generic functions for file/string streams, I guess) that basically all do strlen as first step to buildup this stream structure.
What's that?
World size? Lots of open world games are as big or bigger.
Graphics? I thought this too, but then I had another look (been a few years since I played it) and its quite dated looking now. Not bad, but definitely not on the same level as more recent games. Understandable though, it came out an entire console generation ago!
Even gameplay-wise, yeah, it has much better driving mechanics than most non-racing games, but shooting and such is fine, but nothing special.
Its a great game and was absolutely fantastic for when it came out. I'm not at all surprised that its as popular as it is! But "most games still don't come close" just isn't true, at least for large AAA titles.
How well they had it running on the 360 is absolutely amazing given the limitations but nostalgia is taking over if you think most games on 4th gen Xbox don't even come close.
So I don't think it relates in this tech situation. Tech-wise GTA5 is not that interesting for few years now.
From their blog post about it: https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times...
The amount of free skilled labor businesses benefit from and abuse while not donating back to society is laughable. It's great they helped the GTA 5 community and a fun read but keep your pride and fame, I'd take cash anyday over a pat on the back.
Edit: I reread the article and I overlooked how there was a second issue of a poorly implemented "hash table" that was a linked list that checked the entire list for dups in every update. Since we don't have access to the source code, it's hard to say if this is poorly implemented piece of code on Rockstar's part or someone else. It could be some deeply buried piece of code that no one ever looked at for years until now.
https://www.youtube.com/watch?v=UsmqWSZpgJY
But this is online GTA. I can imagine that they handed it off to another department that didn't have the same amount of discipline and expertise. it's probably an off shoot team that creates content for the engine but don't necessarily need to dig down into how the engine works.