Most active commenters
  • imtringued(11)
  • sillysaurusx(9)
  • (9)
  • jack_riminton(7)
  • hnick(7)
  • rasz(6)
  • djmips(5)
  • buran77(4)
  • LukvonStrom(4)
  • charcircuit(4)

←back to thread

3883 points kuroguro | 353 comments | | HN request time: 3.831s | source | bottom
1. breakingcups ◴[] No.26296724[source]
It is absolutely unbelievable (and unforgivable) that a cash cow such as GTA V has a problem like this present for over 6 years and it turns out to be something so absolutely simple.

I do not agree with the sibling comment saying that this problem only looks simple and that we are missing context.

This online gamemode alone made $1 billion in 2017 alone.

Tweaking two functions to go from a load time of 6 minutes to less than two minutes is something any developer worth their salt should be able to do in a codebase like this equipped with a good profiler.

Instead, someone with no source code managed to do this to an obfuscated executable loaded with anti-cheat measures.

The fact that this problem is caused by Rockstar's excessive microtransaction policy (the 10MB of JSON causing this bottleneck are all available microtransaction items) is the cherry on top.

(And yes, I might also still be salty because their parent company unjustly DMCA'd re3 (https://github.com/GTAmodding/re3), the reverse engineered version of GTA III and Vice City. A twenty-year-old game. Which wasn't even playable without purchasing the original game.)

replies(40): >>26296812 #>>26296886 #>>26296970 #>>26297010 #>>26297087 #>>26297123 #>>26297141 #>>26297144 #>>26297184 #>>26297206 #>>26297323 #>>26297332 #>>26297379 #>>26297401 #>>26297448 #>>26297480 #>>26297806 #>>26297961 #>>26298056 #>>26298135 #>>26298179 #>>26298213 #>>26298234 #>>26298624 #>>26298682 #>>26298777 #>>26298860 #>>26298970 #>>26299369 #>>26299512 #>>26299520 #>>26300002 #>>26300046 #>>26301169 #>>26301475 #>>26301649 #>>26301961 #>>26304727 #>>26305016 #>>26311396 #
2. xyst ◴[] No.26296812[source]
is it really unbelievable? companies this big tend to prioritize hiring a shit ton of middlemen (VPs, project managers, developer managers, offshore managers) in order to avoid paying out for talent to build and constantly maintain the project. I guess paying a shit ton of money to 1 person to manage 10+ poorly paid contractors works out for them, accounting wise.

If one really examined the accounting for GTAO, I would bet that most of the billions of dollars that were earned in micro transactions went to marketing, product research, and to middle management in the form of bonuses.

replies(3): >>26296937 #>>26296939 #>>26296958 #
3. masklinn ◴[] No.26296886[source]
> The fact that this problem is caused by Rockstar's excessive microtransaction policy (the 10MB of JSON causing this bottleneck are all available microtransaction items) is the cherry on top.

For what it's worth, 10MB of JSON is not much. Duplicating the example entry from the article 63000 times (replacing `key` by a uuid4 for unicity) yields 11.5MB JSON.

Deserialising that JSON then inserting each entry in a dict (indexed by key) takes 450ms in Python.

But as Bruce Dawson oft notes, quadratic behaviour is the sweet spot because it's "fast enough to go into production, and slow enough to fall over once it gets there". Here odds are there were only dozens or hundreds of items during dev so nobody noticed it would become slow as balls beyond a few thousand items.

Plus load times are usually the one thing you start ignoring early on, just start the session, go take a coffee or a piss, and by the time you're back it's loaded. Especially after QA has notified of slow load times half a dozen times, the devs (with fast machines and possibly smaller development dataset) go "works fine", and QA just gives up.

replies(11): >>26297203 #>>26297314 #>>26298126 #>>26298269 #>>26298511 #>>26298524 #>>26300274 #>>26301081 #>>26302098 #>>26305727 #>>26306126 #
4. spuz ◴[] No.26296937[source]
Even if you view this as a business decision rather than a technical one, any smart project manager would realise a 6 minute loading time literally costs the company millions per year in lost revenue. (How many times have you felt like firing up GTA Online only to reconsider due to the agonising load time). I would guess this was simply a case of business folk failing to understand that such a technical issue could be so easily solved plus developers never being allowed the opportunity to understand and fix the issue in their spare time.
replies(2): >>26297079 #>>26297233 #
5. IshKebab ◴[] No.26296939[source]
It's kind of hard to believe. GTA5's online mode is their cash cow, and 6 minute load times are common?! It's kind of amazing people even play it with those load times. It's such a simple problem that one dev could have found and fixed it within a day.
replies(1): >>26297225 #
6. xyzelement ◴[] No.26296958[source]
I am always amused by comments like this. You have no idea what development practices they follow (neither do I) but it's hilarious to read your tone.

GTA has achieved tremendous success both as an entertaining game and as a business. It's enjoyed by millions of people and generates billions in revenue. As per this article, it has startup problems (which don't seem to actually really hurt the overall product but I agree sound annoying) but the bigger picture is: it's a huge success.

So - Rockstar has nailed it. What exactly is your platform for analyzing/criticizing their processes or even having a shot of understanding what they are? What have you build that anyone uses? (not saying you haven't, but.. have you been involved with anything remotely close to that scale?)

And if not, whence he high horse?

replies(5): >>26297807 #>>26297944 #>>26297957 #>>26298568 #>>26298634 #
7. anoncake ◴[] No.26296970[source]
I find it absolutely believable that a for-profit company does not prioritize fixing a game that is already a cash cow anyway.
8. 0xy ◴[] No.26297010[source]
Something I've noticed in highly successful companies is that problems never get fixed because the sound of the money printer from the core business is deafening.

Our customer portal loads 2 versions of React, Angular, Knockout and jQuery on the same page? Doesn't matter, it's printing billions of dollars.

Rockstar's money printer is so loud that they don't care about problems.

Same thing for Valve, their money printer is so loud that they barely bother to make games anymore and let the Steam client languish for years (how did they let Discord/Twitch happen?).

replies(3): >>26297047 #>>26297821 #>>26298467 #
9. LukvonStrom ◴[] No.26297047[source]
Look at sharepoint. It's a total nightmare of a platform to develop on, but the people just adapted and built their businesses on it
replies(3): >>26297318 #>>26297641 #>>26300042 #
10. alien_ ◴[] No.26297079{3}[source]
The people who observe the slow loading time already paid for the game, so I guess R* won't lose much revenue because of this nasty bug.
replies(6): >>26297111 #>>26297112 #>>26297137 #>>26297138 #>>26297411 #>>26298127 #
11. tamrix ◴[] No.26297087[source]
Well this sprint we didn't release any new features but we reduced the load.... Dammit hackernews!
12. bcrosby95 ◴[] No.26297111{4}[source]
The game has microtransactions. Coincidentally, also a large reason why load times were so slow.
replies(1): >>26297219 #
13. delecti ◴[] No.26297112{4}[source]
The online mode has microtransactions. People not playing anymore aren't paying for microtransactions either.
14. kuroguro ◴[] No.26297123[source]
Small nitpick: I believe these are items/prices for the in-game currency, not micro-transactions.

You can buy in-game currency for real world money tho: https://gta.fandom.com/wiki/Cash_Cards

Not 100% sure, never bought anything.

replies(1): >>26313186 #
15. ◴[] No.26297137{4}[source]
16. ◴[] No.26297138{4}[source]
17. Thaxll ◴[] No.26297141[source]
It was probably fast 10years ago when the store had couple of items, the dev back then never thought that it would grow to 60k items. Classic programming right there.

As for profiling, Windows Performance Toolkit is the best available no?

replies(1): >>26297302 #
18. gameswithgo ◴[] No.26297144[source]
What is complicated about it is that an online modern 3d game is huge, and there are 95,000 places where a dumb mistake could hurt performance a lot for some customers. You catch 94,999 of them and then "unforgiveable"
replies(1): >>26297557 #
19. moonchild ◴[] No.26297184[source]
> salty because their parent company unjustly DMCA'd re3

Unjustly, but legally. The people you should be salty at are the lawmakers.

replies(2): >>26297192 #>>26297873 #
20. breakingcups ◴[] No.26297192[source]
That still remains to be seen. A DMCA is not a court order. Anyone can file one and take a repository offline for two weeks.
replies(1): >>26297639 #
21. hanniabu ◴[] No.26297203[source]
That QA bit is too true, "it works for me!" shrug.
22. formerly_proven ◴[] No.26297206[source]
Also: Rockstar being too cheap to implement anti-cheat on the by far most successful online shooter on the planet.

Also

> I don’t think there’s any easier way out.

lmfao

replies(1): >>26297740 #
23. ◴[] No.26297219{5}[source]
24. toast0 ◴[] No.26297225{3}[source]
It's not at all hard to believe if you've been playing video games for a while.

Everything is getting slower and slower, and nobody cares.

When I played the Atari 2600, I had to wait for the TV to warm up, but otherwise there were no games with anything approaching load times (with 128 bytes of RAM in the console, who would know). The NES didn't have much in the way of load times either, but you did have to fiddle with the cartridge slot. SNES and Genesis didn't usually load (Air Buster being a noticeable exception). CD based systems sure did like to load, but that's somewhat understandable. In the mean time, more and longer boot screens. The Switch uses a cartridge (or system flash/SD cards), but it likes to load forever too.

PC Gaming has had loading for longer, but it's been getting longer and longer.

Some arcade games have lengthy loading sequences, but only when you turn them on while they read their entire storage into RAM so they can be fast for the rest of the time they're on (which in arcades is usually all day).

replies(5): >>26297382 #>>26297857 #>>26298176 #>>26298184 #>>26313627 #
25. somehnguy ◴[] No.26297233{3}[source]
The insane loading times are literally the exact reason I haven’t played in years. Every time I played I just ended up frustrated and got distracted doing something else while waiting, so I just quit playing altogether. I don’t know how people stand the loading times.
replies(2): >>26297343 #>>26298199 #
26. trulyme ◴[] No.26297302[source]
Meh. It's ok to assume low number of items and code accordingly. What is not ok is for the company to ignore such a problem for years, instead if detecting and fixing it.
27. ldng ◴[] No.26297314[source]
But is quadratic the real issue ? Isn't that a developer answer ?

The best algorithm for small, medium or a large size are not the same and generally behave poorly in the other cases. And what is small? Medium? Large?

The truth is that there is no one size fits all and assumptions need to be reviewed periodically and adapted accordingly. And they never are... Ask a DBA.

replies(4): >>26297536 #>>26299324 #>>26300073 #>>26300359 #
28. ip26 ◴[] No.26297318{3}[source]
I suspect sharepoint is the platform version of excel & VBA. You & I might hate it, but it gets powerful capabilities into the hands of regular people.

sharepoint is probably many non-engineer's very first exposure to actual version control with checkouts, checkins, version history, and merge.

replies(1): >>26297969 #
29. AnonsLadder ◴[] No.26297323[source]
Does anyone have a link to a copy of re3? Iirc, there was a gitrepo that kept a copy of all DMCA'd repos
replies(1): >>26298582 #
30. nikanj ◴[] No.26297332[source]
The old maxim of "Premature optimization is the root of all evil" has over time evolved to "If you care one iota about performance, you are not a good programmer".
replies(10): >>26297445 #>>26297456 #>>26297528 #>>26298013 #>>26298281 #>>26298654 #>>26299400 #>>26300250 #>>26304073 #>>26313590 #
31. jonwinstanley ◴[] No.26297343{4}[source]
Totally agree, I loved the story mode and never got into online due to the amount of time spent loading and finding interesting stuff to do.
32. imglorp ◴[] No.26297379[source]
> This online gamemode alone made $1 billion in 2017 alone.

There's the answer right there. They figure it's making $1B/yr, leave it alone. Maintenance? That cuts into the billion. Everyone moved onto the next project.

replies(1): >>26297441 #
33. ubercow13 ◴[] No.26297382{4}[source]
Shorter loading times were one of the main selling points of this console generation.
34. neatze ◴[] No.26297401[source]
I am not saying it is the case, nor understand details of solution in depth to comment on it, but in analogy, this reads to me, like an yelling at person who figure out how to solve rubix cube puzzle steps, because once steps are known solution is simple.
replies(1): >>26297813 #
35. AuryGlenz ◴[] No.26297411{4}[source]
I didn’t buy the game to play with my friends because I heard of how terrible the loading situation was.
36. tyingq ◴[] No.26297441[source]
Or they fix it, see that their "in game time" average drops, and then back it out...
replies(2): >>26297712 #>>26298136 #
37. ◴[] No.26297445[source]
38. oh_sigh ◴[] No.26297448[source]
Maybe long load times are advantageous? Because it creates longer user sessions on average? If you devote 10 minutes to loading the game you will probably want to play for at least 30 minutes.
replies(1): >>26297560 #
39. vendiddy ◴[] No.26297456[source]
And fwiw, the full quote is:

We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.

Yet we should not pass up our opportunities in that critical 3%.

replies(2): >>26297809 #>>26297927 #
40. zionic ◴[] No.26297480[source]
I stopped playing GTAV online a few years back because of the crazy load times, not only that but you have to go through 6+ minute load screens multiple times in many sessions.

This oversight has cost them millions of dollars easy.

replies(1): >>26297634 #
41. ◴[] No.26297528[source]
42. gridspy ◴[] No.26297536{3}[source]
quadratic is a fancy way of saying "this code is super fast with no data, super slow once you have a decent amount"

The problem is that when you double the amount of stuff in the JSON document, you quadruple (or more) the scanning penalty in both the string and the list.

Why quadruple? Because you end up scanning a list which is twice as long. You have to scan that list twice as many times. 2x2 = 4. The larger list no longer fits in the fast (cache) memory, among other issues. The cache issue alone can add another 10x (or more!) penalty.

replies(2): >>26301042 #>>26301492 #
43. Plutoberth ◴[] No.26297557[source]
If it was that way for a few months and then fixed... still pretty shoddy but sure. However, it has been that way for YEARS, and is one of the most common complaints among players. I wonder how much of the remaining loading time could actually be shaved off if someone with the source code took a crack at it.
44. erik_seaberg ◴[] No.26297560[source]
Wouldn't the most impatient customers be more likely to pay for items, rather than earn them in game?
45. wyaeld ◴[] No.26297634[source]
If it made over $1b in a year previously, and had such insane load times, its very plausible this bad coding has cost them north of another $1b.

Probably ranks pretty highly up there in terms of damage to company financials, due to a lack of care.

46. moonchild ◴[] No.26297639{3}[source]
Yes but the code was clearly derived directly from a decompiled binary; not ‘clean room’ reverse engineering. Hence, illegal, regardless of whether a dmca takedown notice is filed.
replies(2): >>26297880 #>>26297900 #
47. passivate ◴[] No.26297641{3}[source]
What makes it a nightmare? Can you share a few issues you've run into?
replies(3): >>26298052 #>>26309612 #>>26397904 #
48. themeiguoren ◴[] No.26297712{3}[source]
I would not at all be surprised if the long load time made for a sunk cost that kept people playing for longer sessions rather than picking it up for less than half an hour at a time.
replies(3): >>26298190 #>>26298319 #>>26304613 #
49. buzzerbetrayed ◴[] No.26297740[source]
This may be obvious, but is GTAV the most successful online shooter on the planet? (Never played it)
replies(2): >>26297798 #>>26304119 #
50. sickofparadox ◴[] No.26297798{3}[source]
Its the second best selling game of all time[1], and because Minecraft doesn't have guns, I suppose that would qualify it as the most successful online shooter (even if I think another genre would be more applicable).

[1]https://en.wikipedia.org/wiki/List_of_best-selling_video_gam...

replies(2): >>26298237 #>>26298461 #
51. umanwizard ◴[] No.26297806[source]
“worth their salt” is doing a lot of work here. No true Scotsman fallacy?

I think you might be surprised by how few programmers even know what a profiler is, let alone how to run one.

replies(1): >>26297922 #
52. brokencode ◴[] No.26297807{3}[source]
Successful people and businesses can be wrong. You are not making a case for why those development practices are okay, but are simply appealing to authority.

I and most other customers would argue that 6 minute loading times are atrocious, and if there is an easy fix like this, it makes me lose a lot of respect for the developer who doesn’t fix it. It maybe would even make me avoid them in the future.

A reputation is built over years, but can be lost pretty much instantly. Companies have to continue serving their customers to enjoy ongoing success.

replies(1): >>26298636 #
53. blowski ◴[] No.26297809{3}[source]
Also, it’s not “never optimise”. It’s “only optimise once you’ve identified a bottleneck”. I guess in a profit-making business you only care about bottlenecks that are costing money. Perhaps this one isn’t costing money.
replies(5): >>26297885 #>>26297926 #>>26298312 #>>26299305 #>>26299394 #
54. burlesona ◴[] No.26297813[source]
No, other people have pointed this out, this should have been very easy to recognize as inefficient in the source code. More likely the code was written hastily and only tested against very small inputs, and then nobody ever actually tried to improve the famously long load times.
replies(1): >>26298088 #
55. Nexxxeh ◴[] No.26297821[source]
>Same thing for Valve, their money printer is so loud that they barely bother to make games anymore and let the Steam client languish for years (how did they let Discord/Twitch happen?).

Not sure that's a fair criticism.

Alyx was widely praised. Artifact... Wasn't. I don't know about Dota Overlords. And that's just the last couple of years.

They've also developed hardware like SteamLink, Steam Controller, some high-end VR gear...

They develop a LOT. They just don't release a while lot.

I agree there should be a lot more work and effort in the client. And they constantly fuck up handling their esports.

But I don't think "barely bother to make games anymore" isn't one of them.

replies(1): >>26298627 #
56. yoz-y ◴[] No.26297857{4}[source]
> Everything is getting slower and slower, and nobody cares.

It really depends. The latest crop of games I’ve played (Doom Eternal, Cyberpunk) loads way faster than games from a few years back (aforementioned GTA-V, Shadow Warrior 2…).

This is also on the same machine, so it’s not the hardware that makes it faster.

replies(1): >>26298191 #
57. bscphil ◴[] No.26297873[source]
Why can't I be salty at both? People have responsibility for their actions even if those actions are legal.
58. xyzzy_plugh ◴[] No.26297880{4}[source]
That doesn't make it illegal, there are plenty of jurisdictions where non-clean-room reverse engineering is perfectly legal.
replies(1): >>26298470 #
59. skzo ◴[] No.26297885{4}[source]
ding ding ding ding
60. nl ◴[] No.26297900{4}[source]
Deriving something from a decompiled binary isn't illegal in itself.
replies(1): >>26298009 #
61. thrwyoilarticle ◴[] No.26297922[source]
That seems like a misapplication of the fallacy. If we assume 'worth their salt' is a synonym for 'good', then saying any good developer can operate a profiler is entirely reasonable.
62. saagarjha ◴[] No.26297926{4}[source]
This one isn’t measured to be costing money. Trying to figure out how much money you’re losing as a result of performance problems is extremely difficult to do.
63. nicbou ◴[] No.26297927{3}[source]
Then again, using the correct data structure is not really optimisation. I usually think of premature optimisation as unnecessary effort, but using a hash map isn't it.
replies(4): >>26298331 #>>26298348 #>>26298402 #>>26304254 #
64. saagarjha ◴[] No.26297944{3}[source]
You can be right in many places and still wrong in some, and enjoy enormous success as a result of all you have done well. That does not mean nobody can criticize you for something that you have clearly done wrong.
65. ant6n ◴[] No.26297957{3}[source]
GTA is fine ... but the storytelling is meh. Missions keep repeating, and there's little to draw you in. You drive somewhere, somebody gets whacked, you drive back. Rinse and repeat. The makers try compensate with shocking and crass violence and humor, but at some point it just feels kind of juvenile.

Maybe it got better in recent releases, I kind of stopped following after GTA4.

66. thrwyoilarticle ◴[] No.26297961[source]
The popular view is that companies who write software know how to prioritise, so if a problem like this isn't fixed, it's because they've done the calculations and decided it's not worthwhile.

I disagree. If there are no internal incentives for the people who know how to fix this to fix it, or if there's no path from them thinking fixing it could improve revenues to being assigned the ticket, things like this won't get fixed. I can fully believe the load times will result in fewer users and lower expenditure.

I think we'll see this happen with Facebook Messenger. Both the apps and the website have become slow and painful to use and get worse every month. I think we'll start to see engagement numbers dropping because of this.

replies(9): >>26298540 #>>26298890 #>>26299005 #>>26299267 #>>26299384 #>>26299942 #>>26302435 #>>26303488 #>>26304643 #
67. ant6n ◴[] No.26297969{4}[source]
Sharepoint has version control? I thought it´s mostly a poorly functioning Dropbox copy.
replies(1): >>26298139 #
68. ThatPlayer ◴[] No.26298009{5}[source]
That still leaves it as a derivative work, which is protected from copying and distribution by copyright.
69. smolder ◴[] No.26298013[source]
That belief is getting a bit outdated now that computing efficiency is hitting walls. Even when compute is cheaper than development, you're still making a morally suspect choice to pollute the environment over doing useful work if you spend $100k/yr on servers instead of $120k/yr on coding. When time and energy saved are insignificant compared to development expense is of course when you shouldn't be fussing with performance.

I don't think the anti-code-optimization dogma will go away, but good devs already know optimality is multi-dimensional and problem specific, and performance implications are always worth considering. Picking your battles is important, never fighting them nor knowing how is not the trick.

replies(1): >>26298542 #
70. nl ◴[] No.26298052{4}[source]
I've never seen search work properly (where "properly" = 90+% of searches return desired document in first 2 results)
replies(1): >>26300029 #
71. Scaevolus ◴[] No.26298056[source]
I suspect that the core engine programmers moved onto other projects long ago, leaving GTA:O running with mostly artists and scenario designers to produce more DLC.

This bug wouldn't present in the first couple years with the limited amount of DLC, so by the time it got ridiculous there wasn't anyone left with the confidence to profile the game and optimize it. A junior dev could fix this, but would probably assume that slow loads are a deep complex engine problem that they won't be able to fix.

Alternatively, management would declare that there's too much risk doing more technical engine work, and not sign off on any proposed "minor" optimizations because it's too risky.

replies(2): >>26298177 #>>26299503 #
72. wnoise ◴[] No.26298088{3}[source]
The sscanf issue was not obvious: it looks linear. And should be, on a better sscanf implementation.

The duplicate checking on the other hand is a classic "accidentally quadratic" case that is obvious.

73. hnick ◴[] No.26298126[source]
> Plus load times are usually the one thing you start ignoring early on, just start the session, go take a coffee or a piss, and by the time you're back it's loaded.

In GTA V, when I tried to enjoy multiplayer with my friends the abysmal load times were what killed it for me.

You actually have to load into the game world - which takes forever - before having a friend invite you to their multiplayer world - which takes forever, again.

So both a coffee, and a piss. Maybe they fixed that now?

replies(5): >>26298242 #>>26298478 #>>26298536 #>>26298577 #>>26298673 #
74. the_gipsy ◴[] No.26298127{4}[source]
IIRC R* makes orders of magnitudes more from microtransactions than from the game box
75. ◴[] No.26298135[source]
76. the_gipsy ◴[] No.26298136{3}[source]
You might be onto something here...
77. easton ◴[] No.26298139{5}[source]
This comment is absolutely hilarious to me, because the main selling point for SharePoint (for the longest time) was that you could version control Microsoft Office documents. Then intranets happened, someone wanted to build a Turing machine with it, and now it's the monstrosity we know now.
78. iknowstuff ◴[] No.26298176{4}[source]
Direct Storage will allow for hardware-accelerated decompression straight from an NVMe into GPU memory, without involving the CPU and system RAM.

https://devblogs.microsoft.com/directx/directstorage-is-comi...

replies(2): >>26298411 #>>26300587 #
79. jorams ◴[] No.26298177[source]
> This bug wouldn't present in the first couple years with the limited amount of DLC

GTA Online loading times have been infamous for a very long time. They were already unjustifiably bad when they released the game for PC, and at that point engine programmers would surely be involved.

replies(1): >>26298597 #
80. lucideer ◴[] No.26298179[source]
> It is absolutely unbelievable [...] that a cash cow [...] has a problem like this

Likely it wasn't fixed precisely because it's such a cash cow. "It's making money, don't fuck with it".

81. coredog64 ◴[] No.26298184{4}[source]
There were a few systems for the 2600 that used a cassette tape to load larger games than would fit on a ROM cassette.

I can’t recall the name, but I had the hack and slash adventure game variant. The connector on the custom cartridge was fiddly and required a stout rubber band to reliably work.

82. iknowstuff ◴[] No.26298190{4}[source]
I don't know. In GTA Online you encounter loading every 15min.
83. hnick ◴[] No.26298191{5}[source]
Doom Eternal's load times were so good I didn't even bother moving it to my SSD (I junction to a larger HDD by default).
84. hnick ◴[] No.26298199{4}[source]
Maybe the load times inadvertently work like the intentional spelling mistakes in a Nigerian scammer's email.

It's bait for the non-discerning customer who is more likely to empty their wallet for microtransactions because they have less experience with games so don't know what is normal :)

replies(2): >>26298382 #>>26313619 #
85. grishka ◴[] No.26298234[source]
> the reverse engineered version of GTA III and Vice City

Ohhh. Thank you for telling me about this. I just found a mirror and successfully built it for macOS. Runs so much better than the wine version. But I guess I'll never finish that RC helicopter mission anyway lol

86. gambiting ◴[] No.26298237{4}[source]
Well but that's a bit like saying that since there are technically races in GTA it's also the most successful racing game. It will also be the most successful flying game and the most successful sailing simulator....etc etc.

I don't know, even though there is shooting in GTA I don't think I'd call it a shooter.

replies(1): >>26302881 #
87. simias ◴[] No.26298242{3}[source]
I agree. I played GTA online for a bit and quite enjoyed it but I haven't touched it in a while and the insane loading times are a big reason why.

It kind of baffles me that they haven't bothered to fix this trivial issue when the result is to cut 4 entire minutes of loading time.

replies(1): >>26300141 #
88. nullserver ◴[] No.26298269[source]
Was new guy at a startup. Soon noticed that chuck Norris was in our compiled JavaScript. Turned out Someone had included the entire test suite in production deploy.

Had been like that for nearly a year. A few minutes of work brought out client js file from 12MB to less then 1mb.

replies(4): >>26298301 #>>26298716 #>>26299932 #>>26300594 #
89. ehsankia ◴[] No.26298281[source]
That doesn't really apply here. I don't even play GTA V but the #1 complain I've always heard for the past 6 years is that the load times are the worst thing about the game. Once something is known to be the biggest bottleneck in the enjoyment of your game, it's no longer "premature optimization". The whole point of that saying is that you should first make things, then optimize things that bring the bring the most value. The load time is one of the highest value things you can cut down on. And the fact that these two low hanging fruit made such a big difference tells me they never gave it a single try in the past 6 years.
replies(2): >>26298514 #>>26299480 #
90. jogjayr ◴[] No.26298301{3}[source]
> Soon noticed that chuck Norris was in our compiled JavaScript

Is that a library? Or the string "Chuck Norris"?

replies(3): >>26298370 #>>26298499 #>>26300517 #
91. CogitoCogito ◴[] No.26298312{4}[source]
Perhaps this one is costing them a lot of money.
92. simias ◴[] No.26298319{4}[source]
I enjoyed GTA online but haven't touched it in well over a year, and the insane loading times are definitely a big reason why. For those who haven't played the game it's important to emphasize that it's usually in the 5minute range, and even then you'll regularly end up with connectivity issues or other problems that will kick you out of the lobby for yet an other ~5 minute load.

When I played it wasn't uncommon to spend 30 minutes mostly looking at the loading screen while you were trying to set up a play session with a couple of friends.

If you're an adult with limited playtime it's just a complete dealbreaker. You can't just decide to have a quick 20minute play session if you know that you'll have to spend at least half of it looking at loading screens.

93. CogitoCogito ◴[] No.26298331{4}[source]
My belief is that your first goal should be cognitive optimization. I.e. make it simple and clear. That includes using hash maps when that is the proper data structure since that’s is what is called for at a base design level.

The next step is to optimize away from the cognitively optimal, but only when necessary. So yeah it’s really crazy this was ever a problem at all.

replies(1): >>26300662 #
94. marcosdumay ◴[] No.26298348{4}[source]
If it doesn't change semantics, it's optimization.

It's just a zero cost one, so if anybody appears complaining that you are caring to choose the correct data structure and that's premature (yeah, it once happened to me too), that person is just stupid. But not calling it an optimization will just add confusion and distrust.

95. jeffgreco ◴[] No.26298370{4}[source]
Or the actor/martial artist?
replies(1): >>26304936 #
96. jamiek88 ◴[] No.26298382{5}[source]
The fact that this scenario is not immediately ludicrous to me is saddening.
97. rodgerd ◴[] No.26298402{4}[source]
This is the key point: premature optimization would be e.g. denormalising a database because you think you might have a performance problem at some point, and breaking the data model for no good reason.

Here the wrong data structure has been used in the first place.

98. wtallis ◴[] No.26298411{5}[source]
The more important thing about DirectStorage is probably that it will encourage games to use multithreaded async IO rather than serializing all their IO requests even when the underlying storage device requires dozens of simultaneous requests to deliver its full throughput.
replies(2): >>26298920 #>>26299414 #
99. charcircuit ◴[] No.26298461{4}[source]
That list is incomplete. CSGO is the most played game on Steam and is now free to play. I would not be surprised in the slightest if more people have CSGO.
replies(1): >>26302126 #
100. tester756 ◴[] No.26298467[source]
What does Valve / Steam have to Discord?
replies(3): >>26298505 #>>26298506 #>>26301519 #
101. charcircuit ◴[] No.26298470{5}[source]
But distributing it without a license from the copyright holder is.
replies(1): >>26299950 #
102. agret ◴[] No.26298478{3}[source]
Then when you want to actually do an activity like a deathmatch you have to wait for matchmaking and then the loading - takes forever. Once you are finally in a match it's okay but as soon as the match ends you have to wait for the world to load again and then queue again which takes bloody forever. Spend 2hrs playing the game and have only a few matches, more time spent looking at loading screens than actually playing anything.
replies(2): >>26300300 #>>26301380 #
103. kevincox ◴[] No.26298499{4}[source]
I was assuming that someone used the string as a name in the test?
replies(1): >>26299073 #
104. charcircuit ◴[] No.26298506{3}[source]
I think the parent was implying that steam groups could have improved to the point where Discord would not be necessary.
replies(1): >>26313714 #
105. meibo ◴[] No.26298505{3}[source]
Valve only recently implemented a semi Discord-clone(with way better quality voice chat, give it a try some time if you haven't yet).

Their chat system has been famously bad and mostly unchanged since the early 2010's, and only very recently was reworked into this.

replies(1): >>26298576 #
106. nicoburns ◴[] No.26298511[source]
You mention quadratic behaviours and there's probably some truth to that, but it seems to me that it's partly a C++ problem. In any other langauge nobody would even consider hacking up JSON parsing using a string function. They'd use the stdlib functional if available or import a library, and this problem wouldn't exist.
replies(3): >>26298626 #>>26300323 #>>26300828 #
107. djmips ◴[] No.26298514{3}[source]
Sure it does apply. These complaints come out after the game has been released. They should have optimized this before they released, while they even designed the system. However that's considered premature optimization, when in fact it's just bad design.
replies(1): >>26300730 #
108. beached_whale ◴[] No.26298524[source]
It would be interesting to see what JSON library they used that uses scanf for parsing numbers. Nothing like a painters algorithm type scenario to really slow things down, but also JSON numbers are super simple and don't need all that work. That is hundreds of MB's of unneeded searching for 0s
replies(1): >>26301172 #
109. zmix ◴[] No.26298536{3}[source]
> So both a coffee, and a piss.

Reminds me on loading "G.I. Joe" (from Epyx) on the C64 with a 1541 floppy disk. However, the long loads came after every time you died and meant you also had to swap 4 disks.

replies(1): >>26298585 #
110. saghm ◴[] No.26298540[source]
> I think we'll see this happen with Facebook Messenger. Both the apps and the website have become slow and painful to use and get worse every month.

The messenger website has been atrocious for me lately. On my high-powered desktop, it often lags a bit, and on my fairly high-end laptop, it's virtually unusable. I thought it must be something I changed in my setup, but it's oddly comforting to hear that I'm not the only one with such issues.

replies(2): >>26298595 #>>26299011 #
111. djmips ◴[] No.26298542{3}[source]
I agree 100% - the whole cheery lack of care around optimization to the point of it becoming 'wisdom' could only have happened in the artifice of the huge gains in computing power year on year.

Still, people applying optimizations that sacrifice maintainability for very little gain or increase bugs are still doing a disservice. People who understand data flow and design systems from the get-go that are optimal are where it's at.

112. djmips ◴[] No.26298568{3}[source]
Why is this getting voted down, are there that many cynical people out there?
replies(1): >>26309528 #
113. tester756 ◴[] No.26298576{4}[source]
>(with way better quality voice chat, give it a try some time if you haven't yet).

Well, I'm using VoIPs basically for >decade everyday and voice quality was never something I cared about (I mean that all soft that I've used was somewhat decent in that matter)

the most important thing is - how to get all people on the same program? and I'm finding it not so realistic to get all friends to Steam

114. ajacksified ◴[] No.26298577{3}[source]
They didn't fix it. I tried a few days ago, because it's a really fun game... except for these seemingly easy to fix issues that are huge barriers.
115. djmips ◴[] No.26298582[source]
try the hacker news search (bottom of the page) and you'll find stories on the takedown where there are links to backups posted in the comments.
116. hnick ◴[] No.26298585{4}[source]
I remember as a kid I went to someone's birthday party in the 80s and we wanted to play a karate themed game on something that used a cassette tape. It took so long to load we went and played outside!

To be fair to GTA V, I don't think my installation was on a SSD because it was 50GB or something at the time (now it's 95GB?), but that said when it released SSDs were not as cheap or widespread as they are now so that's their problem. The linked article shows the initial load to be much shorter which did not match my experience.

replies(4): >>26300021 #>>26301730 #>>26302175 #>>26303483 #
117. baby ◴[] No.26298595{3}[source]
For me it’s google maps, it has gotten so freaking slow both on mobile and on desktop. Actually google docs and sheet are the same.
replies(1): >>26298774 #
118. Aeolun ◴[] No.26298597{3}[source]
The 1.5 minute default load time is also ridiculous.
119. crazygringo ◴[] No.26298624[source]
I imagine the conversation between the programmer(s) and management went exactly like this:

Management: So, what can we do about the loading times?

Programmer(s): That's just how long it takes to load JSON. After all, the algorithm/function couldn't be more straightforward. Most of the complaints are probably coming from older hardware. And with new PC's and next-gen consoles it probably won't be noticeable at all.

Management: OK, guess that's that then. Sucks but nothing we can do.

Management had no idea of knowing whether this is true or not -- they have to trust what their devs tell them. And every time over the years someone asked "hey why is loading so slow?" they get told "yeah they looked into it when it was built, turns out there was no way to speed it up, so not worth looking into again."

And I'm guessing that while Rockstar's best devs are put on the really complex in-game performance stuff... their least experienced ones are put on stuff like... loading a game's JSON config from servers.

I've seen it personally in the past where the supposedly "easy" dev tasks are given to a separate team entirely, accountable to management directly, instead of accountable to the highly capable tech lead in charge of all the rest. I've got to assume that was basically the root cause here.

But I agree, this is incredibly embarrassing and unforgiveable. Whatever chain of accountability allowed this to happen... goddamn there's got to be one hell of an internal postmortem on this one.

replies(2): >>26298742 #>>26300530 #
120. nitwit005 ◴[] No.26298626{3}[source]
A lot of other languages make use of the c standard library functions to parse floats (and to do various trigonometric functions), so they may be more similar than you imagine.
replies(1): >>26308398 #
121. djmips ◴[] No.26298627{3}[source]
It's fair. They are not a games developer anymore. Alyx was good but a boutique game made by a behemoth games marketplace company and before it came out, almost a decade had passed since Portal 2...
replies(1): >>26299552 #
122. Aeolun ◴[] No.26298634{3}[source]
I don’t need to be successful to have a platform to be outraged. It doesn’t matter that it’s Rockstar, if anything, the fact that they’re so successful and couldn’t be bothered to save so many people literal hours of their lives in loading time makes it worse.
123. hombre_fatal ◴[] No.26298636{4}[source]
They didn’t make an appeal to authority but an appeal to commercial success, and they’re right on.

The fact that GTAO is so popular should make most HNers rethink what they know about the commercial necessity of optimization vs building a compelling product.

replies(1): >>26301350 #
124. GhostVII ◴[] No.26298654[source]
The problem here isn't a lack of optimization, it's a lack of profiling. Premature optimization is a problem because you will waste time and create more complex code optimizing in places that don't actually need it, since it's not always intuitive what your biggest contributors to inefficiency are. Instead of optimizing right away, you should profile your code and figure out where you need to optimize. The problem is that they didn't do that.
replies(1): >>26302637 #
125. thaumasiotes ◴[] No.26298673{3}[source]
> You actually have to load into the game world - which takes forever - before having a friend invite you to their multiplayer world - which takes forever, again.

Is that... the same problem? Is microtransaction data different in your friend's multiplayer world than it is in the normal online world?

replies(1): >>26298870 #
126. db48x ◴[] No.26298682[source]
In my experience most engineers have never used a profiler even once. They write the code, and if you're lucky they get it working correctly.
replies(1): >>26301219 #
127. ◴[] No.26298716{3}[source]
128. CountHackulus ◴[] No.26298742[source]
I can pretty much guarantee that there was no discussion with management like that. From experience, live ops games are essentially a perpetually broken code base that was rushed into production, then a breakneck release schedule for new features and monetization. I've personally had this conversation a few times:

Programmer: Loading times are really slow, I want to look into it next sprint.

Management: Feature X is higher priority, put it in the backlog and we'll get to it.

replies(7): >>26298776 #>>26298779 #>>26299089 #>>26299398 #>>26299585 #>>26305946 #>>26307872 #
129. amluto ◴[] No.26298774{4}[source]
Gmail. Typing in gmail is painfully laggy.
130. sillysaurusx ◴[] No.26298776{3}[source]
Former gamedev here. I can vouch for this conversation. The idea that management would ask about slow loading times doesn't seem to be too realistic in my experience.
131. Ansil849 ◴[] No.26298777[source]
> It is absolutely unbelievable (and unforgivable) that a cash cow such as GTA V has a problem like this present for over 6 years and it turns out to be something so absolutely simple.

It is both believable and - by virtue of the fact that, as you said, the series continues to be a cash cow - is apparently forgivable.

Here's the thing: the company has zero reasons to fix this, or other ostensibly egregious affronts like DRM, because gamers keep buying the product. There is literally no economic incentive to 'fix' it.

replies(1): >>26298825 #
132. crazygringo ◴[] No.26298779{3}[source]
Normally I'd agree with you but this particularly problem is SO visible, and experienced by everyone, that I have to think management must have looked into it. I mean, it's the loading screen. They couldn't not encounter it themselves, every time.

But I could be wrong. I've only worked with sites and apps not gaming.

replies(2): >>26298811 #>>26299441 #
133. sagarm ◴[] No.26298811{4}[source]
Do you really think management at Rockstar is using their product?
replies(2): >>26300599 #>>26316208 #
134. _AzMoo ◴[] No.26298825[source]
How many players have they lost to excessive load times?
replies(2): >>26299430 #>>26300471 #
135. sillysaurusx ◴[] No.26298860[source]
Attitudes like yours are why gamedevs keep to themselves.

"Unbelievable" and "unforgivable" eh? It's a greedy attitude. Instead of viewing GTA5 as a success that's brought a lot of people happiness, you view it as a money cow designed to extract every last bit of profit – and time, since this bug caused 70% longer loading times.

Perhaps it's both. But you, sitting here behind a keyboard with (correct me if I'm wrong) no gamedev experience, have no idea what it's like on a triple-A gamedev team with various priorities. The fact that the game works at all is a minor miracle, given the sheer complexity of the entire codebase.

The fact that someone was able to optimize the obfuscated executable is a wonderful thing. But they weren't a part of the team that shipped GTA 5. If they were, they certainly wouldn't have been able to spend their time on this.

replies(4): >>26298944 #>>26298989 #>>26299041 #>>26301469 #
136. hnick ◴[] No.26298870{4}[source]
The article mentions story mode loading as well as online loading, but as I mentioned in another comment the story time shown there is much lower than what I experienced, probably because SSDs are now standard and were rarer in 2013 (I could not justify 50GB+ on this one game at the time). So it may be a mixture of factors.
137. rsj_hn ◴[] No.26298890[source]
That the process breaks down in some cases doesn't mean they don't know how to prioritize. They clearly know how to prioritize well enough to make a wildly successful and enjoyable game. That doesn't mean no bad decisions were made over the last decade or so of development.

Like anything else, things will be as bad as the market allows. So I'd expect monopolies to do a worse and worse job of making good decisions and companies in competitive fields to do a better and better job over time. Thus the difference between TakeTwo and Facebook, and the need for lower cost of entry and greater competition in all economic endaevors where efficiency or good decision making is important.

replies(1): >>26299314 #
138. amluto ◴[] No.26298920{6}[source]
I’m not entirely convinced that DirectStorage can do DMA directly from the device to the GPU. I suspect that even current NVMe devices aren’t quite fast enough for this to be a huge deal yet.

I think, but I’m not entirely sure, that Linux can do the peer to peer DMA trick. One nasty bit on any OS is that, if a portion of the data being read is cached, then some bookkeeping is needed to maintain coherence, and this adds overhead to IO. I wouldn’t be surprised if consoles had a specific hack to avoid this overhead for read-only game asset volumes.

139. ryandrake ◴[] No.26298944[source]
This kind of excuse making is one of the reasons I got out of software development. It’s not just gamedev. Priorities are way out of wack when you have time to put in binary obfuscation, but no time to fix such a huge performance bottleneck. The idea that “it’s a miracle software works at all” demonstrates the chronic prioritization and project management competence problem in the industry.

It’s ok to recognize a thing as a business success but a technical failure. In fact many software projects are business successes despite awful and unforgivable quality compromises. You don’t get to whitewash it just because the thing prints money.

replies(2): >>26298964 #>>26298971 #
140. systemvoltage ◴[] No.26298964{3}[source]
How do we then address chronic incompetence? Never complain about it?

This is not small. This kind of incompetency if employed in a different sector such as security would lead to losing personal data of millions.

> “it’s a miracle software works at all”

This is not the case here. Please re-evaluate your calibration on this topic.

replies(1): >>26298980 #
141. hibikir ◴[] No.26298970[source]
It's not just believable, but it's normal. I have spent quite a bit of my career maintaining software, and I don't recall one employers where low hanging fruit like this wasn't available everywhere.

The problem is not that developers can't optimize things: you will find some developers capable of figuring this problem out anywhere. What makes this low hanging fruit so popular is the fact that we aren't measuring enough, and even when we do, we aren't necessarily prioritizing looking into things that are suspiciously slow.

In the case of this example, the issue is also client-side, so it's not as if it's costing CPU time to Rockstar, so it's unlikely you'll have someone who can claim their job description includes wondering if the load times are worth optimizing. When problems like this one get solved is because someone who is very annoyed by the problem and either convinces a developer to even look into the problem. Most of the time, the people that suffer, the people that get to decide how to allocate the time, and the people that are in a position to evaluate the root cause of the problem never even get to talk to each other. It's the price we often pay for specialization and organizations with poor communication.

Organizations where the people deciding what has to be done next, and where the company culture dictates that the way forward is to either complete more tickets faster, or find ways to be liked by your manager, are not going to be fostering the kind of thinking that solves a problem like this one, but that's a lot of what you find in many places. A developer with a full plate that is just working on the next feature isn't going to spend their time wondering about load times.

But instead we end up blaming the developers themselves, instead of the culture that they swim in.

replies(1): >>26300557 #
142. sillysaurusx ◴[] No.26298971{3}[source]
If loading times were prioritized, features would be cut. Which features would you cut out of the game in order to have fast loading times?

This is what you'd need to decide. And then afterwards, it might not print as much money as you think it will.

It's easy looking at it from the outside. Not so easy from the inside.

replies(4): >>26299025 #>>26299027 #>>26299050 #>>26300868 #
143. sillysaurusx ◴[] No.26298980{4}[source]
1. you replied to the wrong person.

2. this kind of incompetence exists in all other sectors. That's why pentests are so crucial, and why they guard the security of millions.

3. we'll have to agree to disagree that it's a minor miracle. Having seen the complexity firsthand, it's quite amazing.

replies(1): >>26299912 #
144. scrose ◴[] No.26298989[source]
I don’t think the OP was specifically calling out any game devs. Any engineer who has worked on any software projects knows that you usually can only do as well as your deadlines and managements priorities allow for.. Unless the stars line up and you have the resources and autonomy to fix the issue yourself, and love working for free on your own time.
replies(1): >>26298998 #
145. sillysaurusx ◴[] No.26298998{3}[source]
Unfortunately, they were calling out gamedevs:

Tweaking two functions to go from a load time of 6 minutes to less than two minutes is something any developer worth their salt should be able to do in a codebase like this equipped with a good profiler.

But, I fully agree with your assessment, for what it's worth.

replies(1): >>26299092 #
146. ◴[] No.26299005[source]
147. ianlevesque ◴[] No.26299011{3}[source]
Try https://www.messenger.com/desktop
replies(2): >>26300943 #>>26304761 #
148. ianlevesque ◴[] No.26299025{4}[source]
Did you read the article? Zero features needed to be cut, this is a 30 minute fix.
replies(1): >>26300230 #
149. ryandrake ◴[] No.26299027{4}[source]
I’d have to have been there, seen the list of features with eng estimates and trade offs, but yes I would have happily made the call to chuck one of them if it meant a measurably higher quality product, like this massive load time improvement. Hell, that zoom-out-zoom-in animation when you switch characters probably took as much time to code as it would have to fix this bug. I think anyone with good product sense and the balls to make a priority call that might get someone upset could make the right call here.
150. scaramanga ◴[] No.26299041[source]
GTA-5 broke even within 48 hours of it's release. Nearly a decade later, it still costs $60 for a digital copy with (practically) zero distribution costs. It has made over $6Bn in revenue, and is said to be the most profitable entertainment product of all time.

How much would it have cost to fix this issue?

Is anyone saying that it is a game developers fault? I mean, what is that you think would prevent a game developer from fixing this?

Because I think, anyone even vaguely familiar with the software industry in general is going to come up with answers like:

1. It would not cost very much 2. No it isn't a developers fault, because it's clear that even an intern could fix this 3. Management isn't interested, or is too disorganized, or focussed on cynical extraction of every last bit of profit.

And from that perspective, it certainly does make it seem like a cynical cash cow.

I don't know many game developers, but I do know people in other parts of the software industry and professionals in general. And I think that they keep to themselves because they have first hand experience of how the industry works and understand it better than anyone. The probably sympathise with the right of the public to feel ripped off.

That said, I still paid for the game, I think it's fun. Apparently there is "no alternative" to this state of affairs.

replies(2): >>26299152 #>>26309680 #
151. scaramanga ◴[] No.26299050{4}[source]
But after it's already made record-breaking profits and is a huge cash cow with recurring revenue. You could just say "hey, I'll hire one single contract developer to do these kinds of quality of life things" and make a fraction less profit.
replies(1): >>26299104 #
152. hnick ◴[] No.26299073{5}[source]
Yes I think they meant they saw a weird name that stood out (I've seen Donald Duck at work) and they investigated more, finding it was test data.
replies(1): >>26300395 #
153. dec0dedab0de ◴[] No.26299089{3}[source]
Ughh Every time I want to fix anything I have to sneak it in with something else I'm working on, or wait so long to get approval that I forgot all the details.
replies(1): >>26307940 #
154. scaramanga ◴[] No.26299092{4}[source]
I read that to mean "If a manager would say to one of his developers, who are probably all worth their salt, take a profiler and go figure out why our load times suck, then this would be fixed."

But a manager shouldn't even have to do that, because in a well functioning team, if the dev leads come back with such a fix, they won't get punished for going off the reservation and would probably be doing this of their own initiative.

But if things like that get met with "why have you wasted time on this? we gave you the list of priorities and it does not include load times" then dev leads will make sure all developers time is filled with things which are prioritized.

Edit: grammar

155. ryandrake ◴[] No.26299104{5}[source]
> make a fraction less profit

Unfortunately this part often kills quality initiatives. Why fix bugs for your existing customers when you can deploy the engineering resources on a DLC or a sequel which will milk those customers for more? There is no more craftsmanship or pride in good work left in software.

"When you're a carpenter making a beautiful chest of drawers, you're not going to use a piece of plywood on the back, even though it faces the wall and nobody will see it. You'll know it's there, so you're going to use a beautiful piece of wood on the back. For you to sleep well at night, the aesthetic, the quality, has to be carried all the way through." -Steve Jobs

156. dragonwriter ◴[] No.26299152{3}[source]
> GTA-5 broke even within 48 hours of it's release. Nearly a decade later, it still costs $60 for a digital copy with (practically) zero distribution costs

Well, that's the nominal full retail price against which the various discounts are measured, sure, but I doubt that's what most people buying it these days pay except if they are getting something else with it. I'm pretty sure it's in the stack of things I've gotten free this year on Epic that's in my “I might check it out sometime” queue, it's $29.98 right now from Humble Bundle, etc.

157. pcr910303 ◴[] No.26299267[source]
> I think we'll see this happen with Facebook Messenger. Both the apps and the website have become slow and painful to use and get worse every month. I think we'll start to see engagement numbers dropping because of this.

In fact, I think the iOS app for FB Messenger did get a redesign due to problems and it’s rewritten from scratch? I remember being pleasantly surprised after the big update… It became lightweight, integrates well with iOS and supports platform features.

On the other hand, the desktop app or the website is a shitshow :-(

replies(1): >>26302704 #
158. nmfisher ◴[] No.26299305{4}[source]
Precisely. Hasn't GTA Online done over a billion in revenue?

Given how incredibly successful it's been, it's conceivable the suits decided the opportunity cost of investing man-hours to fix the issue was too high, and that effort would be better spent elsewhere.

replies(2): >>26299338 #>>26384404 #
159. AshWolfy ◴[] No.26299314{3}[source]
Does it? Just because something is good or successful doesnt mean it was made well. Thats why we are seeing stories of crunch, failures of management compensated by extreme overwork.
replies(1): >>26299362 #
160. ◴[] No.26299324{3}[source]
161. Dylan16807 ◴[] No.26299338{5}[source]
They're making lots of money but the ridiculous load times absolutely cost them money. It's not worth an unlimited amount of dev time to fix, but they definitely should have assigned a dev to spend one day estimating how hard fixes would be.
replies(4): >>26300074 #>>26300343 #>>26302375 #>>26302586 #
162. rsj_hn ◴[] No.26299362{4}[source]
Now you are moving the goalposts to a philosophical discussion as to what types of business you like or don't like, and I'm not sure any progress can be made with that approach. Some will share your values, others will find them repugnant, and in any case it doesn't have much bearing on rockstar load times.
replies(1): >>26311382 #
163. karmasimida ◴[] No.26299369[source]
It could be that at the time GTA online first publishes, the list as hashmap isn't too much of an issue, due to limited catalog, but get progressively worse as the inventory grows.

Ofc this is just a hypothesis, but I see the hesitation to change legacy code if it ain't broken as a wide spread mentality.

replies(1): >>26299391 #
164. karmasimida ◴[] No.26299384[source]
> I can fully believe the load times will result in fewer users and lower expenditure.

Is GTA online still attracts new users in droves? I doubt.

If the old users live with the loading time for years, they are likely to continue living with it. It would be nice if Rockstar fixes it, but I doubt it would be anything except a PR win.

replies(2): >>26304611 #>>26384217 #
165. sellyme ◴[] No.26299391[source]
> I see the hesitation to change legacy code if it ain't broken as a wide spread mentality.

Load times measured in double digit minutes on a significant number of machines meets absolutely every reasonable definition of "broken".

166. astrange ◴[] No.26299394{4}[source]
Not all performance problems have obvious "bottlenecks", some are entirely second-order effects.

For instance, everyone tells you not to optimize CPU time outside of hotspots, but with memory usage even a brief peak of memory usage in cold code is really bad for system performance because it'll kick everything else out of memory.

167. Shish2k ◴[] No.26299398{3}[source]
At my last job I had that conversation several times :( Our website would regularly take 30s+ for a page to load, and we had an hour of scheduled downtime each week, because that’s how long it took the webapp to restart each time code was pushed. “Scheduled downtime doesn’t count as downtime, we still have the three 9’s that meets our SLA, and there’s nothing in the SLA about page load times. Now get back to building that feature which Sales promised a client was already finished”...

Aside from being generally shameful, the real kicker was that this was a "website performance & reliability" company x__x

replies(1): >>26299882 #
168. 29athrowaway ◴[] No.26299400[source]
I am not sure I would call that "evolution".
169. astrange ◴[] No.26299414{6}[source]
Does it need "multithreaded async IO" or just "async IO"? It's usually async _or_ multithreaded; the native multi-request I/O APIs are single threaded, but if you have multithreaded I/O using simpler APIs, the system is batching them into one request at the cost of a little latency.
replies(2): >>26300964 #>>26305306 #
170. astrange ◴[] No.26299430{3}[source]
I've lost interest in a lot of online games because the clients always do their mandatory updates on launch, which is exactly the time you want to play the game.

(Same thing for websites - they show you all the annoying popup signup sheets/survey questions the instant you load the page.)

replies(1): >>26300380 #
171. danbolt ◴[] No.26299441{4}[source]
I think someone in QA likely might have the scenario you describe, but I think management might only be playing the game 2-3 times a day at most. They're likely trying to keep the studio organized enough to have the game ship decently.
172. anotherfish ◴[] No.26299480{3}[source]
We used to start up Quake while we waited then we'd forget about GTAO. Later we'd discover GTA had kicked us out for being idle too long. Then we'd just close it.

That should be embarrassing for Rockstar but I don't think they would even notice.

173. anotherfish ◴[] No.26299503[source]
This is very much the likely scenario. The money is in further DLC. The existing GTAO engine is "done" from their perspective.

I'd guess also that the next version of the base engine is in RDR2 or later and doesn't have these issues. But at the same time they likely wouldn't backport the changes for fear of cost overruns.

174. matheusmoreira ◴[] No.26299520[source]
I used to play this game a lot on PS4. I actually dropped it due to the ridiculous loading times... I still assumed it was doing something useful though. I can't believe they wasted so much of my time and electricity because of this. Even cheaply-made mobile games don't have bugs like this.

> their parent company unjustly DMCA'd re3

Wow, this is EA games level scumbaggery... I don't think I'm gonna buy games from them again.

175. woobilicious ◴[] No.26299552{4}[source]
Valve released Dota 2, and then ported it to a brand new engine, they've been consistently adding updates to that game for 10 years, they've been working on CS:GO, with similar effect, I think you lot forget that the majority of Valves developers were working primarily on team-fortress and counter-strike as mods before they hired them, they're primarily a multiplayer house.

Valve unlike most companies maintains their games for more than 10 years.

Just because they haven't released anything obvious to the casual observer like new single player titles that is easily marketed is only showing your ignorance of Valves entire catalog of games, and attitude to development.

176. trissylegs ◴[] No.26299585{3}[source]
I once did get to look an optimsing a bad load time... only because at that point it was crashing due to running out of memory. (32-bit process)

In this case it was a JSON, but using .NET so Newtonsoft is at lease efficient. The issues were many cases of: * Converting string to lowercase to compare them as the keys were case insensitive. (I replaced with a StringComparison.OrderinalCaseInsensitve) * Reduntant Dictionary's * Using Dictionary<Key, Key> as a Set. replaced with HashSet.

The data wasn't meant to be that big, but when a big client was migrated it ended up with 200MB of JSON. (If there data was organised differently it would've been split accross many json blobs instead)

It would also be nice to handle it alls as UTF8 like System.Text.Json does. That would half all the strings saving a fair bit. (I mean the JSON blob it starts with is converted to UTF-16 because .NET)

177. StillBored ◴[] No.26299882{4}[source]
Reminds me of working for a company in the 1990's that ran constant television ads convincing everyone their experts could fix everyone's networking problems. OTOH, as an engineer working at the company the file share used for editing code/building/etc, died for an hour or two seemingly every day when the network took its daily vacation.

Many of us, after having run out of other crap to do, would sit around and wonder if the "B" grade network engineers were assigned to run the company LAN, or the ones we sent onsite were as incompetent.

replies(1): >>26299929 #
178. systemvoltage ◴[] No.26299912{5}[source]
Agree that this kind of incompetence exists in all sectors and I think we don't talk about it, it becomes acceptable. We're not trying to blame a single developer, that'd be inappropriate. But, the management and QA culture in a AAA game studio that rakes billions ought to be better.

The complexity is in reverse engineering the binary. The developer has access to the full source code and the profiling tools I presume.

Another one is in Microsoft Flight Simulator, instead of downloading multiple archives, it downloads one, unzips it using a single CPU core and then downloads another one. MSFS 2020 takes a few hours to install and that's not just because of the internet connection, but this shitty installation code.

179. dragonwriter ◴[] No.26299929{5}[source]
> Many of us, after having run out of other crap to do, would sit around and wonder if the "B" grade network engineers were assigned to run the company LAN

Internal IT is almost invariably a cost center, the technicians providing the service you are selling to customers are working in a profit center. So, yeah, probably that plus be managed in a way which focussed on minimizing cost not maximizing internal customer satisfaction or other quality metrics.

replies(1): >>26313559 #
180. rsj_hn ◴[] No.26299932{3}[source]
related: Guy Fieri in node https://nodesource.com/blog/is-guy-fieri-in-your-node-js-pac...
181. tw04 ◴[] No.26299942[source]
You have just described why I laugh anytime someone complains that government is inefficient. ANY organization of sufficient size is "inefficient" because what a large organization optimizes for (for reasons I cannot explain) cannot align with what that organization's customers want optimized.
replies(4): >>26300873 #>>26301249 #>>26311226 #>>26313510 #
182. jagger27 ◴[] No.26299950{6}[source]
Distributing what, exactly? It required you already owned a copy of the game to install/build it.
replies(1): >>26302457 #
183. Scoundreller ◴[] No.26300002[source]
> obfuscated executable loaded with anti-cheat measures

I'm impressed that gamecopyworld.com is still online, updated, and has the same UI that it did in 2003

replies(1): >>26300981 #
184. jcims ◴[] No.26300021{5}[source]
Not to one up but we didn’t have any storage for our c64 for the first year or so. We would team up to enter a game from Byte or whatever (one reader, one typer, one proofreader) and then protect that thing with our lives all weekend to keep people from unplugging it. The machine code games were the easiest to type but if they didn’t work you were kind of hosed lol.
replies(1): >>26334676 #
185. passivate ◴[] No.26300029{5}[source]
I see. We have some internal facing stuff that our IT has done using sharepoint. Its not pretty/modern by any stretch, but it works just fine. Was curious what the world looks like from the other side.

Isn't the search issue more of a indexing engine problem though? Can you plug in other engines?

186. the_only_law ◴[] No.26300042{3}[source]
I still have no idea what Sharepoint even is. The way I’ve always seen it used is a way to host sites with file hosting tied to them. It feels like an over engineered CMS.
replies(1): >>26397916 #
187. pilif ◴[] No.26300046[source]
> This online gamemode alone made $1 billion in 2017 alone.

which of course goes to show that at least from a business side, this issue is completely inconsequential and all resources should be used to push for more monetization (and thus adding to the problem by adding more items to the JSON file) rather than fixing this issue, because, clearly, people don't seem to mind 6 minutes loading time.

I'm being snarky here, yes, but honestly: once you make $1 billion per year with that issue present, do you really think this issue matters at all in reality? Do you think they could make $1+n billion a year with this fixed?

replies(2): >>26302597 #>>26313689 #
188. oivey ◴[] No.26300073{3}[source]
In the small case here, there is no meaningful difference in speed between parsers. Using a quadratic algorithm has no advantage and is just an incorrect design.
189. nmfisher ◴[] No.26300074{6}[source]
That's also possible. I haven't played it myself, so I really can't comment.
190. jjoonathan ◴[] No.26300141{4}[source]
Back in dialup/DSL days I discovered a texture compression issue in America's Army (the free US Army game) that doubled its download/install size. Typical download times were about a day and the resume mechanism was poor, so this had the potential to save a lot of grief, not to mention hosting costs. I emailed them, they banned me for hacking, and the next version still had the same issue. Shrug.
replies(2): >>26301028 #>>26344626 #
191. sillysaurusx ◴[] No.26300230{5}[source]
Building the engine alone takes 30 minutes after each change. You're not going to get anything done in 30 minutes. And the more you work on this, the less you're working on shippable features that make money.
replies(2): >>26300497 #>>26313727 #
192. branko_d ◴[] No.26300250[source]
I think this part of the Knuth's quote is central:

> Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered.

And he is explicitly advocating for optimizing the critical part:

> Yet we should not pass up our opportunities in that critical 3%.

And somehow, people have latched onto the catchphrase about "early optimization" that was taken out of context.

193. Agentlien ◴[] No.26300274[source]
For the online games I worked on (a few of the recent NFS games) the items database was similar to the final set quite early in production and we kept an ongoing discussion about load times.

I really liked this article, but I am a bit surprised that this made it into production. I have seen a few instances of this type of slowdowns live for very long, but they tend to be in compile times or development workflow, not in the product itself.

194. ZuLuuuuuu ◴[] No.26300300{4}[source]
Judging from your word choice "deathmatch" and your experience with long loading/matchmaking times I guess you might be a fellow Quake Champions player. Even if you are not, I agree that long loading times are a mood killer when you just want to play a couple of quick matches after work in your limited free time. It is even worse when you know the game's development is abandoned and it will never get fixed, even though you enjoy the game itself.
replies(1): >>26300591 #
195. raverbashing ◴[] No.26300323{3}[source]
But C++ had at least a hash_set/hash_map since forever (or just set/map which are still better than this)

I'm sure there are libraries to parse json in C++ or at least they should have built something internally if it's critical, instead they have someone less experienced build it and not stress test it?

replies(1): >>26301441 #
196. blowski ◴[] No.26300343{6}[source]
Arguably, it could actually make them money, since it provides a window of free advertising. I have no data either way, but I wouldn’t assume long load screens are necessarily bad for business.
replies(1): >>26308674 #
197. masklinn ◴[] No.26300359{3}[source]
> But is quadratic the real issue ?

Yes. That is literally the entirety of the issue: online loading takes 5mn because there are two accidentally quadratic loops which spin their wheel.

> The best algorithm for small, medium or a large size are not the same and generally behave poorly in the other cases.

“Behaves poorly” tends to have very different consequences: an algorithm for large sizes tends to have significant set up and thus constant overhead for small sizes. This is easy to notice and remediate.

A naive quadratic algorithm will blow up your production unless you dev with production data, and possibly even then (if production data keeps growing long after the initial development).

198. _AzMoo ◴[] No.26300380{4}[source]
For sure. I fit my gaming into about 2 hours a week. If it takes 6 minutes to load there's no way I'm going to play it. I know I'm not the target market but I'm still a missed opportunity.
199. wiz21c ◴[] No.26300395{6}[source]
I've seen "Carmen Electra" myself :-) And other funny (more gross) names in the dark corners of huge databases...

I also had a customer discover a playboy center page at the end of a test we sent to them. One of the dev thought it'd be a nice reward. Things went very bad from him right after the phone call...

replies(1): >>26300533 #
200. Ansil849 ◴[] No.26300471{3}[source]
> How many players have they lost to excessive load times?

Judging by the number of successful sequels the franchise has spawned, the answer is 'an insignificant number'.

The fact of the matter, and the point my comment was trying to make, is that the overwhelming majority of players do not sufficiently care about load times or other complaints to deter them from paying for the game. That is the reality of the situation.

replies(1): >>26302330 #
201. ianlevesque ◴[] No.26300497{6}[source]
In the mobile space, an app opening faster is so valuable you can make a career out of just that. I haven't worked desktop/console games, but having load times be 6 minutes longer than it needs to be, when you're trying to make money on ongoing microtransactions, has got to be losing you so much more money than the time spent fixing.
replies(1): >>26301735 #
202. nullserver ◴[] No.26300517{4}[source]
String. Used as factory test for populating objects in tests.

It certainly caught my attention.

203. o_m ◴[] No.26300530[source]
Alternatively (from my experience):

Programmer(s): Can we set aside some time to fix the long loading times?

Management: No, that won't earn us any money, focus on adding features

replies(1): >>26301830 #
204. nullserver ◴[] No.26300533{7}[source]
Always assume others have the sense of humor of a 99 year old stick of tnt.

Had someone at work mention they needed to drop off a dog at grooming on the way to pick up Chinese.

I had to walk away for a bit, as I couldn’t hold it in, but didn’t know if that sort of humor would fly with that crowd.

205. smaudet ◴[] No.26300557[source]
Hear hear, we should make a punch a dummy manager/BA/Code standards 'lead' day...

This code looks like someone with almost no experience hacked it together but because they were an intern and likely Rockstar is a toxic place to work, it never gets prioritized to be fixed.

I think if managers prioritized cycle time, metri s more, they'd find that they are encouraging a lot of practices which lead to horrible efficiencies - "measure twice cut once" is a positive mantra which leads to more solid designs with less bugs.

Agile sort of addressed this problem but unfortunately only at small size scales. Iteration and story capacity got overprioritized over quality, customer engagement, and self-leading teams.

Plus things such as scaled agile suffer from the oxymoron of planning fast iteration - if you have a master plan you lose the ability to respond to change and iterate, or you allow iteration and you must accept if any team iterates the whole team must discard the plan...which at some point means you either accept high cycle times or you figure out a way to decouple functionality to the extent the planning becomes the standard fallacy of waterfall - wasting meeting time to go over a plan that isn't based on anything.

206. smaudet ◴[] No.26300587{5}[source]
Lol

"Hey we have this great new tech that makes things even faaster!!"

2 years later

"GTA 6 found to have double online load times, denies claims that game performs worse than GTA 5, tells people to upgrade their systems"

4 years later:

"Tech blogger reverses code, realizes someone managed to loop access between hard drive and gpu despite extremely common modern tech, gets 10x boost after spending a day fixing junk product"

Better technology just hasn't met its match from dumber management and more bureaucratic dev shops...

207. franga2000 ◴[] No.26300591{5}[source]
GTA V has a deathmatch mode and the parent comment sounds like it's talking about that. Especially the "once it's over, you need to load into the primary session, then wait for matchmaking, then wait for loading again" sounds exactly like GTA V.
replies(1): >>26300661 #
208. gordaco ◴[] No.26300594{3}[source]
Ha, this is one of the reasons why I also include outlandish and wrong-looking stuff in unit tests. If we see where it doesn't belong, then we know for sure that we are doing something wrong.

Most often I use unicode strings in unexpected alphabets (i.e. from languages that are not supported by our application and that are not used by the mother tongue of any developer from our team). This includes Chinese, Malayalam, Arabic and a few more. There was a time when I wanted to test the "wrong data" cases for some deserialising function, and I was part annoyed and part amusingly surprised to discover that doing Integer.parseInt("٤٣٠٤٦٧٢١") in Java does parse the arabic digits correctly even without specifying any locale.

replies(1): >>26301179 #
209. sakarisson ◴[] No.26300599{5}[source]
Their children are, at least.
210. ZuLuuuuuu ◴[] No.26300661{6}[source]
Ah I see, thanks for the clarification.
211. yxhuvud ◴[] No.26300662{5}[source]
OTOH, at some point what is good from a cognitive viewpoint depends on what idioms you use. So it can be helpful to actively chose which idioms you use and make certain to not use those that tend to blow up performance wise.
replies(1): >>26301746 #
212. ehsankia ◴[] No.26300730{4}[source]
> while they even designed the system

See, that's exactly why you're wrong. This wasn't a bad "design". If the fix required to rebuild the whole thing from scratch, then you would have a point and thinking about it "prematurely" would've been a good idea. In this case, both the fixes were bugs that could've been fixed after the game was finished without having to undo much of the work done.

The whole point of the saying is that you don't know what's gonna be a bottleneck until after. Yes by optimizing prematurely, you would've caught those two bugs early, but you would've also spent time analyzing a bunch of other things that didn't need to be analyzed. Whereas if you analyze it at the end once people complain about it being slow, you're only spending the minimum amount of time necessary on fixing the things that matter.

replies(1): >>26301852 #
213. secondcoming ◴[] No.26300828{3}[source]
Rapidjson
214. sakarisson ◴[] No.26300868{4}[source]
> Which features would you cut out of the game in order to have fast loading times?

If this is a serious question, I'd say cut any of the new vehicles introduced in the last 2 years. None of them are nearly as impactful as this optimization. In fact, I am having issues imagine any individual feature at all that's as important as this fix.

215. toyg ◴[] No.26300873{3}[source]
> for reasons I cannot explain

Any sufficiently large institution, over time, will prioritise self-preservation over achieving their core mission. This is sociology 101. Once a company has enough users to make it hard or impossible to measure immediate performance, self-preservation is achieved with internal manoeuvering and selling to execs.

replies(1): >>26301047 #
216. lethologica ◴[] No.26300943{4}[source]
[tinfoil hat] A part of me believes that this was their intention in slowing down their browser site to the extent it has (and there is absolutely zero reason as to why it should load as slow as it does) in order to drive downloads for this application. [/tinfoil hat]

It's funny. That page says "A simple app that lets you text, video chat and stay close to people you care about." If it's so simple, then why does the browser version of the site take forever to load?

replies(1): >>26302797 #
217. wtallis ◴[] No.26300964{7}[source]
NVMe is natively a multi-queue storage protocol, so there's no reason for the application or OS to collect IO requests into a single thread before issuing them to the lower layers. The normal configuration is for each CPU core to be allocated its own IO queue for the drive. But multithreaded synchronous (blocking) IO often isn't enough to keep a high-end NVMe SSD properly busy; you run out of cores and get bogged down in context switching overhead at a few hundred thousand IOPS even with a storage benchmark program that doesn't need any CPU time left over for productive work.

With a sufficiently low overhead async API (ie. io_uring) you can saturate a very fast SSD with a single thread, but I'm not sure it would actually make sense for a game engine to do this when it could just as easily have multiple threads independently performing IO with most of it requiring no synchronization between cores/threads.

218. lethologica ◴[] No.26300981[source]
Whoa, what a (refreshing) blast from the past.
219. jack_riminton ◴[] No.26301028{5}[source]
That's hilarious. Out of interest who in the company did you email?
replies(1): >>26302363 #
220. jack_riminton ◴[] No.26301042{4}[source]
Great explanation. Thanks
221. jack_riminton ◴[] No.26301047{4}[source]
Whats the remedy? apart from reducing the size of the organisation
replies(6): >>26301334 #>>26301388 #>>26301392 #>>26301669 #>>26305078 #>>26305980 #
222. john_minsk ◴[] No.26301081[source]
I heard that Chrome team had this KPI from very early on - how much time it takes for Chrome to load and it stayed the same to date. i.e. they can't make any changes that will increase this parameter. Very clever if you ask me
replies(1): >>26301324 #
223. serf ◴[] No.26301169[source]
>It is absolutely unbelievable (and unforgivable) that a cash cow such as GTA V has a problem like this present for over 6 years and it turns out to be something so absolutely simple.

Having played the game, it's not surprising to me in the least.

I have never yet encountered another such 'wild-west' online experience.

It's the only game that is so un-modereated that i've ever played where the common reaction to meeting a hacker that is interested in griefing you is to call your hacker friend white-knight and ask him to boot the griefer-hacker from the lobby.

Reports do next to nothing -- and 'modders' have some very real power in-game, with most fights between 'modders' ending in one of them being booted to desktop by the other exploiting a CTD bug (which are usually chat text-parser based..)

On top of all this, Rockstar attempts to have an in-game economy , even selling money outright to players in the form of 'Shark Cards' for real-life currency , while 'modders' (hackers) easily dupe gold for anyone that may ask in a public lobby.

This isn't just all coincidence; the game lacks any kind of realistic checks/balances with the server for the sake of latency and interoperability -- but this results in every 13 year old passing around the Cheat Engine structs on game-cheating forums and acting like virtual gods while tossing legitimate players around lobbies like ragdolls -- meanwhile Rockstar continues releasing GTA Online content while ignoring playerbase pleas for supervision.

It's truly unique though -- an online battlefield where one can literally watch battles between the metaphorical white hat and black hat hackers; but it's a definite indicator of a poorly ran business when vigilante customers need to replace customer service.

Also, an aside, most 'mod-menus' -- the small applets put together using publicly available memory structs for game exploit -- most all have a 'quick connect' feature that allows hackers to join lobbies much faster than the GTA V client usually allows for. This feature has existed for years and years, and I believe it performs tricks similar to those listed in the article.

replies(1): >>26313666 #
224. dijit ◴[] No.26301172{3}[source]
Unlikely to be a library, either it's libc or it's homegrown.

The only thing most game companies do when it comes to external libraries is to copy the source code of it into their repo and never update it, ever.

OpenSSL is this way, it's a required installation for Playstation but debugging it is seriously hard, and perforce (the games industries version control of choice) can't handle external dependencies. Not to mention visual studio (the game industries IDE of choice..) can't handle debugging external libraries well either.

So, most game studios throw up the hands, say "fuck it" and practice a heavy amount of NIH.

replies(2): >>26301816 #>>26308490 #
225. mikevm ◴[] No.26301219[source]
Let's call them "code technicians" instead of engineers, ok? (that's a euphemism for "code monkeys")
226. buran77 ◴[] No.26301249{3}[source]
With the added difference that governments also have to be far more procedural by virtue of the way they are set up. Regardless of size they are accountable and responsible to a far higher degree in the eyes of the population they represent so there is a legitimate reason to be "slow".

In games the added reason to be slow is that game code is by definition some of the least mission critical code one could find (competes with 90% of the internet web code). Your Linux or Windows code might run a hospital's infrastructure or a rover on another planet. A game on the other hand can launch with bugs the size of your windshield, and can stay like that forever as long as people still pay. And people will pay because games are not unlike a drug for many people.

As such most game coding teams and coders are "trained" to cut every corner and skimp on every precaution. They're not needed beyond a very low baseline as far as software is concerned.

Look at the amount of bugs or cheats incredibly popular games like GTA or CoD have. These are billion dollar a year franchises that leave all this crap on the table despite all the money they make. They have all the resources needed, it's a conscious call to proceed like this, to hire teams that will never be qualified enough to deliver a high quality product and will be encouraged to cut corners on top of that.

Source: a long time ago I worked for a major game developer in a senior management role (unrelated to the dev activity) and left after feeling like "facepalm" for too long in every single SM meeting.

replies(1): >>26307251 #
227. rasz ◴[] No.26301324{3}[source]
Google lately "optimized" Chrome "time for the first page to load" by no longer waiting for extensions to initialize properly. First website you load bypasses all privacy/ad blocking extensions.
replies(4): >>26301402 #>>26301490 #>>26304875 #>>26312216 #
228. ayewo ◴[] No.26301334{5}[source]
There was a fantastic discussion some years ago on ways to design an organization to minimize the tendency to drift towards self-preservation instead of remaining customer-focused.

The HN discussion[1] was started by an article that provided numbers that seemed to suggest that Wikipedia's spending was slowly spiraling out of control.

1: https://news.ycombinator.com/item?id=14287235

replies(1): >>26313817 #
229. incrudible ◴[] No.26301350{5}[source]
The loading times were not initially that long and then the slow CPU makes a big difference.

This really only goes to show how much you can get away with if you have an outstandingly popular product that has no direct competition. Chances are that your product is not that compelling, if it performs poorly, that will hurt adoption. It will never become outstandingly popular in the first place.

230. yholio ◴[] No.26301380{4}[source]
> more time spent looking at loading screens than actually playing anything.

This could easily compete for the most expensive bug in history, up there with the Pentium Bug. It might have halved the revenue potential of a billion dollar franchise.

231. pdimitar ◴[] No.26301388{5}[source]
Many people would say "more accountability" but I've seen that used successfully to deflect lightning strikes to innocent people who were then fired so... I'd like to know as well.
232. buran77 ◴[] No.26301392{5}[source]
Even if you take engineering you see that adding more links on a chain increases latency and demands more auxiliary circuitry. But at least in engineering you can design each part to do what you want it to do close to perfection. And it will scale better because you can build everything to spec and bin, which is why we automate a lot of tasks. With humans that can't happen. Human "binning" is a constantly moving target.

After tangentially working on this for a long time I'd say that the core issue is so deeply ingrained in human psyche that it may not even be a matter of education (starts early), let alone organization (starts happening when everything else is "set in stone"). There's no organizational structure that fits the types of activities we humans tend to do these days and that can deliver low latency, consistent results at scale. We mitigate issues in one area by accentuating them in others.

You can have one large flat structure but the load on the single coordinating circuit (the manager) will compromise quality. You can split the thing in multiple, individually coordinated units but the added layer of coordination and latency will compromise performance.

Maybe some form of general purpose but not quite full AI, something that combines human like intelligence and engineering like consistency, might be able to do what humans are supposed to but without the variability of humans (which is both good and bad).

replies(1): >>26301509 #
233. raf42 ◴[] No.26301402{4}[source]
Thank you for confirming this, I thought I was going crazy seeing it happen a bunch recently. I assumed my system was just on the fritz.
234. nicoburns ◴[] No.26301441{4}[source]
>I'm sure there are libraries to parse json in C++

There certainly are, but adding a library is much more difficult in C++ than pretty much any other language which seems to tempt people into hacky self-built parsing when they really ought to know better.

replies(1): >>26312256 #
235. daodedickinson ◴[] No.26301469[source]
I did mean to reply to you (72 days ago plus in another thread) I just can't make a Twitter, like I've tried and doesn't like my IP or email addresses or something, not sure
replies(1): >>26301968 #
236. rustybolt ◴[] No.26301475[source]
Not very surprising. Twitter doesn't work properly on my desktop, google freezes when showing the cookiewall, github freezes my phone. These are all important projects of billion dollar companies.
237. Cthulhu_ ◴[] No.26301490{4}[source]
Yeah I think that's the kind of odd behaviour that those KPI's end up causing; they 'cheat' the benchmark by avoiding certain behaviour, like loading extensions later.

I mean I can understand it, a lot of extensions don't need to be on the critical path.

But at the same time, I feel like Chrome could do things a lot better with extensions, such as better review policy and compiling them to wasm from the extensions store.

238. ldng ◴[] No.26301492{4}[source]
> quadratic is a fancy way of saying "this code is super fast with no data, super slow once you have a decent amount"

Well, that is an abuse of the term, by people that sometimes don't actually know what that really means. Up to a point, quadratic IS faster than linear after all for example. Too many developer love too abuse the word blindly.

If it is badly tested with no data, it is badly tested with no data. Period. Not "quadratic".

> The problem is that when you double the amount of stuff in the JSON document, you quadruple (or more) the scanning penalty in both the string and the list.

My point was precisely it depends on the data and initial assumption are to be routinely revised. I was making a general point.

Maybe the guy was pinky-sworn that the JSON would hardly change and that the items were supposed to be ordered, sequential and no more than 101. For all you know it is even documented and nobody cared/remembered/checked when updating the JSON. But we don't know, obfuscated code don't comes with comments and context ...

Or, it is actually a real rookie mistake. It probably was, but we don't have all the facts.

replies(2): >>26301691 #>>26313492 #
239. toyg ◴[] No.26301509{6}[source]
Introducing AI into work relations is how you turn every org into Uber or Amazon delivery: platforms where the worker has no real agency on his work, the apotheosis of alienation. I have no doubt that someone will try it (already we see it creeping in for hiring), I just think it will be Fundamentally Bad.
replies(1): >>26306146 #
240. pityJuke ◴[] No.26301519{3}[source]
In addition to other comments, Steam Chat had significant in-roads with the gaming audience that would eventually form the foundation of Discord. It is quite plausible, had Steam improved chat earlier, that Discord might have never gotten the traction it got.

Nowadays, I find Steam Chat is a ghost town.

241. xwolfi ◴[] No.26301649[source]
I work in a large multi billion company and we have people staring at a slow problem for a decade before a noob comes with a profiler and find they browse every key of a Map instead of calling get and such. Or do 1 million db queries on a GUI startup...

Not surprised they didn't bother for 6 minutes when it takes us 10 years to fix a 30minutes locked startup.

242. donkeyd ◴[] No.26301669{5}[source]
I doubt there is a remedy and personally accept this as a fact of life.
243. mytherin ◴[] No.26301691{5}[source]
> Well, that is an abuse of the term, by people that sometimes don't actually know what that really means. Up to a point, quadratic IS faster than linear after all for example. Too many developer love too abuse the word blindly.

There is absolutely no guarantee that a quadratic algorithm has to be faster than a linear algorithm for small N. It can be, in some situations for some algorithms, but the complexity class of the algorithm has nothing to do with that. A quadratic algorithm may well be slower than a linear algorithm for any N.

The only thing the complexity class tells us is that starting from some N the linear algorithm is faster than the quadratic algorithm. That N could be 0, it could be 100, or it could be 1 billion.

In my experience it's usually between 0~1000, but again, that depends. The complexity class makes no such guarantees. The complexity class tells us the general shape of the performance graph, but not exactly where the graphs will intersect: this depends on the constants.

> If it is badly tested with no data, it is badly tested with no data. Period. Not "quadratic".

It is both. The problem is that the algorithm has quadratic complexity. The fact that it was badly tested caused this fact to remain hidden while writing the code, and turn into a real problem later on.

244. mst ◴[] No.26301730{5}[source]
Oh gods, now I'm reminded of a cassette based game where there was one enemy where if he got a solid hit on you, you got bumped back to the beginning of the level.

Which meant the game displayed "rewind to mark 500 and then hit play" and you had to do that to restart lolsob.

replies(1): >>26322973 #
245. sillysaurusx ◴[] No.26301735{7}[source]
That's a fine argument, and I'm sure that if management knew they could get a 70% decrease in load times in exchange for focusing on this one area, they would have done so. But nobody knew. And discovering that would have been expensive.

I'll meet you halfway though: they should have had profiling sessions that pointed to the JSON parsing code as the issue. I imagine that all of their profiling efforts were focused on the runtime performance, not the load time. Simply put, no one did that profiling, and I don't fault them for focusing on runtime performance (which is where the real money is, as Cyberpunk 2077 demonstrated by not having it, and subsequently having their PS4 orders yanked and refunded).

replies(1): >>26303503 #
246. CogitoCogito ◴[] No.26301746{6}[source]
Given the current code example, I don't even thing idioms come into it. Here a hash map data structure was called for regardless of whatever idioms come into other parts of the design. This is just fundamental and has nothing to do with functional programming, OOP, etc.
247. thw0rted ◴[] No.26301816{4}[source]
In another decade, there's going to be a story here about somebody getting their hands on the original source for this game, and the JSON parser will be a 10-line function with "//TODO: optimize later" at the top.
248. dijit ◴[] No.26301830{3}[source]
That's not how it's been in any of my past gamedev jobs.

I work LiveOps and usually long loading times are something that we would take seriously, as it negatively impacts the reputation of the game.

249. jcelerier ◴[] No.26301852{5}[source]
> Whereas if you analyze it at the end once people complain about it being slow

I think that we should also stop doing crash tests in cars. Just release the car to the public and analyze human crashes afterwards.

replies(2): >>26307615 #>>26310025 #
250. greggman3 ◴[] No.26301961[source]
Tell that to Valve. The Source engine and all its games (Half Life 1, 2, Portal, Alyx) have horrible load times. They might not be as bad as the GTA example but they're long and extremely frustrating.

And yet, no one cares, Those games (and GTA5) all sold millions of copies.

The only way this stuff gets fixed is if (a) some programmer takes pride in load times or (b) customers stop buying games with slow load times.

(b) never happens. If the game itself is good then people put up with the load times. If the game is bad and it has bad load times they'll point to the load times as a reason it's bad but the truth is it's the game itself that's bad because plenty of popular games have bad load times

Also, any game programmer loading and parsing text at runtime by definition, doesn't care about load times. If you want fast load times you setup your data so you can load it directly into memory, fix a few pointers and then use it where it is. If you have to parse text or even parse binary and move things around then you've already failed.

replies(2): >>26302381 #>>26302606 #
251. sillysaurusx ◴[] No.26301968{3}[source]
Hmm, that's unfortunate. Well, I hope you find a way to get on Twitter. Your thoughts are always welcome, and there are a lot of interesting people in the ML scene there.
252. thefz ◴[] No.26302098[source]
> Here odds are there were only dozens or hundreds of items during dev so nobody noticed it would become slow as balls beyond a few thousand items.

Might be, but this particular issue has been raised by thousands of players and ignored for *years*.

replies(1): >>26305481 #
253. RugnirViking ◴[] No.26302126{5}[source]
interesting. Steamspy no longer works, but its last report in 2016 said it had 25 million sales (at the time it was roughly on par with minecraft sales). Since then, the concurrent player count has more than doubled, but its very difficult to get information about sales.
replies(1): >>26304148 #
254. vagrantJin ◴[] No.26302175{5}[source]
That we can say the install bundle is 50 gigs with a straight face though? I remember not long ago games that were 8 gigs caused mayhem.

I suppose devs dont care about that as long as their QA allows it.

replies(1): >>26309481 #
255. simias ◴[] No.26302330{4}[source]
That doesn't make sense, saying that the game still managed to be profitable doesn't show that the loss was insignificant. Those loading times are really annoying and detract from the game, and although I can't quantify the loss either I'd be very surprised if it was insignificant.

I'd say especially since the ones who are most likely to be affected by these issues are working adults with limited playtime who won't want to sit in front of their monitor for 5 minutes waiting for the game to load and also happen to be people with disposable income to pour into a game.

256. jjoonathan ◴[] No.26302363{6}[source]
I was only able to find contact information for one person who I knew was probably technical (from their posts), so I sent it to them.

I never learned the "other side" of this story, but a few years later the same dev team tried to recruit me at a CS contest, to which I politely declined.

More details: I was young, without credit card, and gaming on a mac. AA was free and mac compatible. For a while -- apparently mac ports of unreal engine games were approximately all done by a single very productive contractor and from what I understand the US Army, uhh, stopped paying him at some point. So he stopped releasing the mac ports. From my point of view, this meant that I could only play with other mac users and couldn't use any of the fancy new maps. Logs indicated that the compatibility problems with the new maps were not particularly deep, so I got to parsing the unreal map files and was able to restore compatibility by deleting the offending objects. I implemented texture decoding/encoding mostly for curiosity and because textures were well documented in the reverse engineering "literature." I imagined a workflow where someone would bulk export and re-import textures and aside from the texture names the one piece of metadata I needed was the format: RGBA (uncompressed) or DXT (compressed)? I realized that I could easily identify DXT compression from the image histogram, so I didn't need to store separate metadata. Nifty! But it didn't work. Lots of textures stored in uncompressed RGBA8888 "erroneously" round-tripped to DXT. After poring over my own code, I eventually realized that this was because on many of the textures someone had enabled DXT compression and then disabled it, dropping the texture quality to that of DXT while bloating the texture size to that of RGBA8888 (other textures were still stored as DXT, so compression itself was still working). I wrote a quick tool to add up the wasted space from storing DXT compressed textures in uncompressed RGB format and it came out to about half the total disk space, both before and after the top level installer's lossless compression. They could have re-enabled compression on most of the textures where they had disabled it without loss in quality, and if they had wanted a list of such textures I would have been able to provide it, but it didn't go down that way. When I shared what happened with my father, who had served, his reaction was "Now that's the Army I know!"

replies(1): >>26313818 #
257. rjmunro ◴[] No.26302375{6}[source]
It's costing them money just in the time wasted by their own internal QAs and devs loading the game to test it.
258. gwd ◴[] No.26302381[source]
I think there may sort of be another thing going on: Basically, that the length of load time is an indicator, "This is a really serious program." I've sort of noticed the same thing with test machines: the more expensive the machine, the longer it takes to actually get to the grub prompt.

Six minutes is probably excessive, but having GTA take 1-2 minutes to load almost certainly makes people feel better about the money they spent on the game than if it loaded up in 5 seconds like some low-production 2D adventure game.

replies(1): >>26384494 #
259. stefs ◴[] No.26302435[source]
1. people experiencing this issue have already bought the game, so there's little incentive here.

2. we can be reasonably sure people will buy newer GTA installments regardless of whether this bug is fixed or not.

but:

3. if there's still money to be made from microtransactions this is a huge issue and would absolutely be worthwhile, imo.

260. charcircuit ◴[] No.26302457{7}[source]
Distributing whatever was in the repo. Requiring a copy of the game doesn't magically make it legal. A modded game is a derivative work.
261. danlugo92 ◴[] No.26302586{6}[source]
N=1 but one of the reasons I don't partake in modern gaming is ridiculous loading times and mandatory update sizes.
262. hderms ◴[] No.26302597[source]
The bigger the scale the bigger a few percentage point improvement would be worth. I would generally think if you're at 1bn in revenue you should devote 1%+ percentage points of your workforce towards finding low hanging fruit like this. If 1% of employees deployed to find issues that, when fixed, yield 2% improvement in revenue thats likely a winning scenario
263. danlugo92 ◴[] No.26302606[source]
Do you have a link to how one would archiece this data pointer magic? I wouldnt know what to search for.
replies(2): >>26307282 #>>26313609 #
264. Cthulhu_ ◴[] No.26302637{3}[source]
I'd like to add, while GTA is running I'm really impressed by its performance, even / especially when it was on the PS3; you could drive or fly at high speed through the whole level, see for miles and never see a loading screen. It is a really optimized game, and that same level is continued in RDR2.

Which makes the persisting loading issue all the weirder.

265. Tsiklon ◴[] No.26302704{3}[source]
The iOS app is really much more performant now than it was a couple of years ago. Significantly smaller, and quicker to start up
266. gocartStatue ◴[] No.26302797{5}[source]
Yeah, it used to work well in mobile browser, then only in desktop mode in mobile browser, then not at all. Now it only "kinda sorta" works in desktop browser on ridiculously overpowered PC. Gotta keep the walls tight in that private garden.
267. sickofparadox ◴[] No.26302881{5}[source]
I agree that there is probably some other genre that would describe it better, but I think it wouldn't be unfair by any means to describe GTA as a third-person shooter.
268. rasz ◴[] No.26303483{5}[source]
C64 tape with turbo was actually faster (~500 Bytes/s) than non turbo Floppy (~400 Bytes/s).

Many 8bit Atari owners will have horror memories of aborted Tape loads. After over 20 years someone finally discovered a bug in original ATARI Tape loading ROM routine resulting in randomly corrupted loads, no amount of sitting motionless while the game loads would help in that case :)

269. mywittyname ◴[] No.26303488[source]
I would think this would be one of the biggest revenue / developer_time changes in company history, considering how incredibly profitable online is.
270. rasz ◴[] No.26303503{8}[source]
You do realize Cyberpunk 2077 shipped running better on base PS4 than "critically acclaimed" Control by Remedy?
replies(1): >>26305058 #
271. bborud ◴[] No.26304073[source]
I went back and had a look at that maxim a few years ago and found that it actually doesn't say what many people claims it says. And definitively not as the blanket excuse for slow code that it has always to some degree been used as.

The reason for the misunderstanding is that the kinds of practices it actually talks about are uncommon today. People would often take stuff written in higher level languages and reimplement them in assembler or machine code. Which makes them more time-consuming to change/evolve.

It also isn't like it is hard to figure out which part of a piece of software that is taking up your runtime these days. All worthwhile languages have profilers, these are mostly free, so there is zero excuse for not knowing what to optimize. Heck, it isn't all that uncommon for people to run profiling in production.

Also, it isn't like you can't know ahead of time which bits need to be fast. Usually you have some idea so you will know what to benchmark. Long startup times probably won't kill you, but when they are so long that it becomes an UX issue, it wouldn't have killed them to have a look.

272. kingosticks ◴[] No.26304119{3}[source]
I don't think it's obvious. In terms of player count (which is how I would personally rank success), it is not the most successful by a long way: https://en.wikipedia.org/wiki/List_of_most-played_video_game...

However, games like PUBG and Fortnite are free-to-play (PUBG is only free on mobile?) so in terms of actual sales, you could say GTA is more successful. Still not sure I'd class it as an "online shooter", though.

replies(1): >>26305512 #
273. kingosticks ◴[] No.26304148{6}[source]
Wikipedia has it with 46 million owners on Steam, with the following footnote:

> Not official; the numbers were estimated following a Steam API data leak in July 2018, which gave player ownership estimates for games on the platform that have achievements.

274. bborud ◴[] No.26304254{4}[source]
Exactly. And not only being able to pick the correct data structure for the problem, (and possibly the correct implementation), but being able to know what is going to need attention even before a single line of code is written.

Most of my optimization work is still done with pencil, paper and pocket calculator. Well, actually, most of the time you won't even need a calculator.

275. thrwyoilarticle ◴[] No.26304611{3}[source]
Before GTA online they entertained themselves in other ways. Eventually, they'll move on. The more friction there is to continue playing GTA online, the easier it is for there to be something to pull them away. Rockstar are now competing to be a use of someone's time, not for them to buy the game.
276. antihero ◴[] No.26304613{4}[source]
This is actually very possible - if they allowed people to dip in and dip out, they will. I remember when CP2077 came out on GeForce NOW and the wait times were 30+mins. I'd play a 6 hour session until I was booted off simply to make it worth the wait.
277. alkonaut ◴[] No.26304643[source]
> if a problem like this isn't fixed, it's because they've done the calculations and decided it's not worthwhile.

If it ever reached the point where it had to be an item in a priority list, it's already a failure. Some developer should have seen the quadratic behavior and fixed it. It's not the type of thing that should ever even be part of a prioritized backlog. It's a showstopper bug and it's visible for every developer.

278. randomNumber7 ◴[] No.26304727[source]
> It is absolutely unbelievable (and unforgivable) that a cash cow such as GTA V has a problem like this present for over 6 years

Agree. I found the slow behavior of sscanf while writing one of my first C programs during an internship^^ You literally just have to google "scanf slow" and find lots of information.

279. saghm ◴[] No.26304761{4}[source]
Unfortunately I'm on Linux, and they don't seem to provide a Linux client. I did try out https://github.com/sindresorhus/caprine/, which worked really well, but I'm one of those weirdos who prefers websites to desktop apps.
280. saruken ◴[] No.26304875{4}[source]
Wow, had no idea about this! Can you link me to a writeup or something?
replies(1): >>26305965 #
281. finnh ◴[] No.26304936{5}[source]
bravo! i'll take the downvotes that this content-free comment will garner, but you just made my morning.
282. hinkley ◴[] No.26305016[source]
I've worked a number of places where the engineering culture discourages any sort of fishing expeditions at all, and if I weren't so stubborn everything would take 2-4x as long to run as it does. I say engineering culture, because at 2 of these places everyone was frustrated with engineering because the customers wanted something better, but the engineers would point at flat flame charts, shrug, and say there's nothing that can be done.

Bull. Shit.

There's plenty that can be done because there are parts of a process that don't deserve 15% of the overall budget. The fact that they are taking 1/6 of the time like 5 other things is a failure, not a hallmark of success. Finding 30% worth of improvements with this perspective is easy. 50% often just takes work, but post-discovery much of it is straightforward, if tedious.

My peers are lying with charts to get out of doing "grunt work" when there's a new feature they could be implementing. But performance is a feature.

283. sillysaurusx ◴[] No.26305058{9}[source]
Cyberpunk 2077 ran so horribly on PS4 that Sony had to refund everyone who purchased it.
replies(1): >>26305932 #
284. tehjoker ◴[] No.26305078{5}[source]
It's not a perfect remedy, but you have to loop in the people affected by decisions as part of the decision making structure. That is, for example, customers and workers have to be part of the management structure.

This doesn't happen because it would reduce the power of top decision makers and potentially impact profits. e.g. a customer might ask for a chronologically ordered timeline on Facebook, but that would harsh engagement metrics, revenue, etc. If stuff like this did happen more often though, you'd get products and services that more often achieve their stated aims.

replies(1): >>26313572 #
285. johncolanduoni ◴[] No.26305306{7}[source]
Kernel-mediated async disk IO is still a mess on all major platforms except for newer Linux kernels with io_uring. There's no way to call the APIs in a way that won't block sometimes, and to even have a snowball's chance in hell of not blocking requires giving up on the kernel's disk cache.

Also you're probably going to want to do multithreaded decompression anyway, and it'll be more efficient if you have the threads completing the reads do the decompression themselves. So in any case you probably want multiple threads handling the completion events.

286. tekromancr ◴[] No.26305481{3}[source]
Yea, given how easy it was for the author of the post to find it, I would guess that literally nobody in the last decade bothered to run a profiler to see where they were spending time.

The only possible explanation is that management never made it a priority.

I could see this happening. A project/product manager thinking "We could spend $unknown hours looking for potential speedups, or we could spend $known hours implementing new features directly tied to revenue"

Which is kind of ironic since this fix would keep players playing for more time, increasing the chances that they spend more money.

replies(1): >>26311100 #
287. formerly_proven ◴[] No.26305512{4}[source]
GTA is many things for many different people. For some people, it's a racing game, for others it is about socializing and modding cars, for some it's a dogfighting game, some spend thousands of hours grinding the same set of PvE missions (for some reason), and for many it's a third and first person shooter / warzone simulator.
replies(1): >>26306969 #
288. milesward ◴[] No.26305727[source]
hmm.. the entire pricing table for Google Cloud (nearly 100k skus and piles of weirdness) was only ~2mb... seems pretty big.
289. rasz ◴[] No.26305932{10}[source]
No, Sony pulled Cyberpunk 2077 after CD Project promised refunds and then forced Sony to do it on their end. Sony didnt like that.

Once again - Control by Remedy ran on base PS4 at 10 frames per second, TEN frames. Critically acclaimed, reviewers loved it and didnt tend to mention TEN frames per second on base consoles, not pulled from the store.

290. toomanybeersies ◴[] No.26305946{3}[source]
I had that exact conversation at my old job. They only started listening to me when some requests started timing out because of Heroku's 30 second request duration limit.

Same thing happened with memory consumption. The problem was ignored until we regularly had background jobs using > 4 GB of memory, causing cascading failures of our EC2 instances and a whole bunch of strange behaviour as the OOM killer sniped random processes.

291. rasz ◴[] No.26305965{5}[source]
https://github.com/Tampermonkey/tampermonkey/issues/1083

confirmed by Tampermonkey dev.

292. SilasX ◴[] No.26305980{5}[source]
Competition/choice, which means that self-preservation requires that they care about efficiency. It obviously that wasn't enough here, but definitely tames some inefficiencies.
293. hinkley ◴[] No.26306126[source]
And because a merchandising push in many games may be another 10-50 items, the first couple times the % increase is high but the magnitude is low (.5s to 1s) and by the time you're up to 1000, the % increase is too small to notice. Oh it took 30 seconds last week and now it's 33.

Boiling the frog, as it were. This class of problems is why I want way more charts on the projects I work on, especially after we hit production. I may not notice an extra 500ms a week, but I'm for damn sure going to notice the slope of a line on a 6 month chart.

294. buran77 ◴[] No.26306146{7}[source]
> Introducing AI into work relations is

We don't really know what it is simply because we haven't introduced any "real" AI anywhere, let alone:

>> some form of general purpose but not quite full AI

Talking about efficiency as you scale up large organizations, it's inevitable that humans will introduce delays and variability in the work which cannot be eliminated because it's human nature, biologically and psychologically. Since humans can't change on a timescale that makes this discussion relevant, the only way for very large organizations (like large companies or governments) to operate just as efficiently as small ones is if they rely (quasi)exclusively on some AI that's as capable as top individuals at delivering results but with fewer of the drawbacks. Not only would it not operate as 100.000 distinct entities but as one or a few, it would also run consistently and predictably.

295. kingosticks ◴[] No.26306969{5}[source]
I totally agree, the same way many games are. But in the context of saying "x is by far most successful y on the planet" I think we have to stop somewhere. Otherwise an open game like GTA V becomes the most successful game (in terms of copies sold) in pretty much every category you can't reasonably stick Minecraft in. I don't think there's much value in that.
296. com2kid ◴[] No.26307251{4}[source]
Remember this story from a few days ago?

https://randomascii.wordpress.com/2021/02/16/arranging-invis...

I've seen plenty of interesting bugs, best I found personally was a compiler that was outputting files 1 byte at a time.

Games are riff with these sorts of bugs, but the volume of released games vs other types of software makes any sort of comparison unfair.

replies(1): >>26310093 #
297. wmil ◴[] No.26307282{3}[source]
In the simplest case, in C you can read file data into memory, cast it as a struct, then just use that struct without ever doing any parsing.

As things get more complex you're probably going to need to manually set some pointers after loading blobs of data and casting them.

It's just the standard way of dealing with binary files in C. I'm not sure what you'd need for search terms.

replies(1): >>26327780 #
298. handoflixue ◴[] No.26307615{6}[source]
You do understand that "my entertainment takes 6 minutes to load" is a very different problem from "my essential transportation kills people"? And therefore call for different approaches?
299. nomel ◴[] No.26307872{3}[source]
I experienced this to incredible extremes. It was taking our clients two hours to load their data into an external tool that they use, daily, to view that data. This was caused by our use of a data store that was only half supported by that tool. I showed that if we took two weeks to switch to the other data store, their load times would be 30 seconds. It took two years, and a new manager, to get that implemented. Unfortunately, most of the clients are still using the old data store. They haven't had time to switch to the new version...
300. nomel ◴[] No.26307940{4}[source]
I stopped doing this after realizing that all the extra work was just taking time away from my family. The last time I did anything out of work hours was when I told my manager that I was doing some optimization in my free time and he responded "I don't want you working on that in your free time, you could be working on this instead!". I don't plan on doing anything out of work hours again. He left, and now we're hiring more people, instead, since I can't get everything done. Win for everyone.
replies(1): >>26310641 #
301. oblio ◴[] No.26308398{4}[source]
Not super relevant, though. The average standard library from another language is a lot more hardened than the function written by Joe Sixpack in C last night.
302. WorldMaker ◴[] No.26308490{4}[source]
Visual Studio keeps toying with the idea of a "NuGet for C++" and it is amazing that it still hasn't happened yet. It may seem to indicate that it isn't necessarily the IDE that can fix it, but the user's attitude. How much of the NIH and "just copy that dependency into the tree" is still encouraged for "security" [0] and "control"/"proprietary source"/"management" reasons?

[0] Despite it being an obvious anti-pattern that you aren't going to update dependencies that require copy/paste and manual merge reviews, so security problems should be obviously more rampant than in systems where updating a dependency to the latest security patch is a single install command line (or update button in a GUI), there still seems to be so many C++ devs that love to chime in to every HN thread on a package manager vulnerability that they don't have those vulnerabilities. They don't "have" dependencies to manage, no matter how many stale 0-Days they copied and pasted from outside projects, they don't count as "dependencies" because they are hidden who knows where in the source tree.

replies(1): >>26309075 #
303. Dylan16807 ◴[] No.26308674{7}[source]
They don't need more than a full minute of advertising every load.
304. beached_whale ◴[] No.26309075{5}[source]
I suspect vcpkg is the choice they made, it will/does have support for private and binary repo's too
replies(1): >>26309122 #
305. WorldMaker ◴[] No.26309122{6}[source]
That certainly is the most recent attempt. They've had projects of one sort or another going back at least as far as 2013 from mentions in public blog posts but so far none of them seem to have got much traction with the community. Here's hoping it works this time?
306. hnick ◴[] No.26309481{6}[source]
I read that after patches GTA V is now around 95GB.

Call of Duty: Black Ops Cold War is around 200GB fully installed with all features (HD textures etc).

Some people have insinuated this is intentional to crowd out other games on console hard disks and make moving away from CoD have an opportunity cost. It's probably just laziness.

I haven't looked into it in the past but some prior offenders had a lot of space wasted from uncompressed multi-lingual audio. Instead of letting us choose a language it installs them all so you can switch in game, and uncompressed for saving the CPU for game logic. For CoD the optional HD texture pack is 38GB so that's still a lot unaccounted for.

replies(2): >>26315204 #>>26345841 #
307. Sohcahtoa82 ◴[] No.26309528{4}[source]
They're getting voted down because they're making a ridiculous argument.

They're basically saying that GTAV's massive commercial success should grant it immunity to criticism.

308. Sohcahtoa82 ◴[] No.26309612{4}[source]
In my experience, Sharepoint is stupidly slow, and it feels like it's trying to be everything.

Like...I don't need it to notify me that I have new e-mail. I already have either Outlook or an Outlook tab running.

Sharepoint is a shining example of feature creep run wild.

309. Sohcahtoa82 ◴[] No.26309680{3}[source]
> Nearly a decade later, it still costs $60 for a digital copy

It's actually only $30 and frequently goes on sale for $15. It hasn't been $60 (on Steam at least) since June 2018.

310. ehsankia ◴[] No.26310025{6}[source]
Putting aside the bad analogy that the other comment covers, the overall point I was making also covers doing the optimization before game release, but after the game is more or less complete. Rockstar optimizing during the final few months of playtest wouldn't be premature optimization.

Premature optimization is about trying to optimize the micro (a given function), while you don't yet have the macro (the game itself). If the function accounts for 0.1% of the performance of the final game, it doesn't matter if you make it 5x faster since that will only make the game 0.08% faster. You could've spent that time optimizing a different function that accounts for 10% of the performance, and even optimizing that function by 5% would make the game 0.5% faster, which is more impactful.

311. buran77 ◴[] No.26310093{5}[source]
> but the volume of released games vs other types of software makes any sort of comparison unfair.

No comparison is entirely fair but I think your objection is unfounded. The quantity of games being released is irrelevant when we're talking about the quality of their code. Which is really bad for most big titles.

If anything the comparison was unfair in the other direction. Sure, an OS or browser have a lot of bugs. But if games and their code had a fraction of the scrutiny something like Windows gets you might just find out that 4 lines of code were written "by the book". It's something any honest game dev will confirm, game code is a stack of spaghetti code on top of more spaghetti code. The philosophy is that you can just go ahead with bad code because you can always fix it with a patch later on. Then you notice there's no widespread pushback from gamers (because unless it's an absolute bomb there won't be) and move on with the next round of "features", nobody has time for fixing bugs or combing the spaghetti.

One other problem is that eventually some people coming from the gaming industry will end up switching to other types of software development but will stick to the philosophy. I've done a lot of hiring over my career and of one thing I'm certain. Whenever someone came with most of their career in game development or most of the recent experience I asked for the CV to be put at the bottom of the stack. It was a lesson I learned the hard way.

Issues like the low criticality of game code, the "crunch" work style, the idea that you should just get it out there as quickly as possible, the lack of serious scrutiny into the matter, etc. all compound each other to create a coding (and coordination) style that's hard to shake off.

replies(1): >>26310236 #
312. com2kid ◴[] No.26310236{6}[source]
> No comparison is entirely fair but I think your objection is unfounded.

I should have clarified.

Doing an absolute numerical comparison in terms if "bad game code" to "bad B2C code" is unfair, because now days there is a lot more game dev code than B2C code (if we ignore the web, which is a rather lot of code to ignore I'll admit :) ).

All that said, most of the games on my phone run very well. Most of the games on my PC run very well. Do the massive over budget AAA titles have issues? Of course. Human organizations are really bad at creating large projects, we all know that social interaction overhead scales non-linearly with # of people, large projects get bogged down.

(Now throw in B2B software where the CTO makes the purchasing decisions and only people lower level in the company have to use it. All of a sudden enterprise software starts to suck as much as AAA games!)

> The philosophy is that you can just go ahead with bad code because you can always fix it with a patch later on.

Sure, for AAA games. But plenty of games that I play don't have those sorts of issues.

Meanwhile my Windows start menu only opens every other time I press the start menu button. This happened for years, then it was fixed for a bit, then a few patches later it started happening again.

The start menu on Windows should be the 2nd to last thing that breaks, right behind the mouse driver.

Without huge testing efforts, large software projects will collapse under its own weight. The type of software isn't material to the problem.

> One other problem is that eventually some people coming from the gaming industry will end up switching to other types of software development but will stick to the philosophy.

I've hired plenty of ex-game devs, I agree they have some holes in their skills. But I've also found out that if you sit them down they can write code that traditional software engineers couldn't manage. Spending too long in any one paradigm fixes ones mindset into that paradigm.

I also agree that the quality of code someone puts out is highly influenced by the environment they work in. But I've worked with plenty of ex game devs who take pride in writing correct code the first time around.

> Whenever someone came with most of their career in game development or most of the recent experience I asked for the CV to be put at the bottom of the stack.

That's a shame, because I wouldn't have accomplished some of the things I've done in my career if I hadn't hired a few game developers along the way! I've seen some stupid crazy stuff get pulled off, code that "shouldn't be able to exist", but did exist, and was rock solid reliable, all written by game developers.

People are people, and sure 9 out of 10 the person who bangs on kernels for a living is probably super careful about every line of code they write, but I'm not going to judge an entire field because the most bureaucratic outputs of that field are horrible.

That'd be like saying everyone who writes web apps is an incompetent developer because Jira is slow.

Or that all software developers are bad because, honestly, the majority of users only notice what we make when it breaks.

Well, we only hear about the small % of games that have huge problems, not the larger number of games that work just fine out of the box.

313. dec0dedab0de ◴[] No.26310641{5}[source]
Oh i never work outside of work hours. I meant that I'll just include fixes to things that are tangentially related to my current user story, or even sometimes not related at all. It helps that the team implicitly trusts my code, so anytime I say "oh and I also fixed this", it's fine. The problem is that if I say "oh I want to fix this" it gets put in the system, and ranked, and just kills my momentum.
314. ironmagma ◴[] No.26311100{4}[source]
> management never made it a priority

I think we need a new vocabulary to cover situations like this one. It's not just that other issues took priority here, it's that this wasn't even entered into the list of things to give a crap about. It's something like digital squalor.

315. mbrodersen ◴[] No.26311226{3}[source]
And I laugh every time people claim that it is only governments that can be inefficient. Most large commercial companies are inefficient and almost not functioning at all.
316. AshWolfy ◴[] No.26311382{5}[source]
I dont think anyone likes excessive loading times or crunch. You might argue about the importance of optimization or the necessity of crunch, but i dont think anyone can argue this isnt a failure of management and communication
317. awpy ◴[] No.26311396[source]
Maybe it was outsourced. I don't understand how a team could make such an excellent game and fail to resolve such a simple bottleneck.
318. sundvor ◴[] No.26312216{4}[source]
I hope the Edge team never merges this in.
replies(1): >>26313715 #
319. bleachisback ◴[] No.26312256{5}[source]
The first C++ JSON library that appears when you google it is a single header file.

https://github.com/nlohmann/json

I know because I used it years ago in school.

One of the fastest libraries (https://github.com/miloyip/nativejson-benchmark#parsing-time) is also header-only and compares its speed to strlen.

https://github.com/Tencent/rapidjson

320. account42 ◴[] No.26313186[source]
So what you are saying is they are in fact microtransactions.
321. imtringued ◴[] No.26313492{5}[source]
>Well, that is an abuse of the term, by people that sometimes don't actually know what that really means. Up to a point, quadratic IS faster than linear after all for example. Too many developer love too abuse the word blindly.

The problem with this argument is that if the data size and constants are sufficiently small enough people don't care about whether the linear algorithm is slow. In the case of JSON parsing the constants are exactly the same no matter what string length algorithm you use. Thus when n is small you don't care since the overall loading time is short anyway. When n is big you benefit from faster loading times.

I honestly don't understand what goal you are trying to accomplish. By your logic it is more important to keep short loading times short and long loading times long rather than do the conventional engineering wisdom of lowering the average or median loading time which will sometimes decrease the duration of long loading screens at the expensive of increasing the duration of short loading screens.

322. imtringued ◴[] No.26313510{3}[source]
Organizations are like spheres. Only a small part of the sphere has an exposed surface that is in contact with the outside world. As you grow the sphere most of the mass will be inside the sphere, not near the surface.
323. imtringued ◴[] No.26313559{6}[source]
Just because you are minimizing costs doesn't mean you have to minimize costs until you no longer get the quality you need.
324. jack_riminton ◴[] No.26313572{6}[source]
I understand what you're saying. When I was working as a Product Manager, I had to try really hard to do things for the customer (after user testing etc.)

Normally the response from management was "but will that increase our profits?", to which my answer was "eventually, yes"

325. imtringued ◴[] No.26313590[source]
Back in the day when people talked about premature optimization it was about trivial things like people asking on stackoverflow whether a++, ++a or a += 1 is faster. It obviously is a net loss since ultimately it literally doesn't matter. If matters to you, you are already an expert in the subject and should just benchmark your code.
326. imtringued ◴[] No.26313609{3}[source]
Just use flatbuffers/capnproto.
replies(1): >>26327782 #
327. imtringued ◴[] No.26313619{5}[source]
Microtransaction heavy games are primarily funded by whales who spend thousands on a game. If you even make one of them leave that's a net loss.
328. imtringued ◴[] No.26313627{4}[source]
>It's not at all hard to believe if you've been playing video games for a while.

>Everything is getting slower and slower, and nobody cares.

Yes, modern games are so inefficient and laggy nowadays. Once your game world reaches a certain size it becomes unplayable and that's just in single player. Once you add 10 players you start to hit performance limits very quickly.

329. imtringued ◴[] No.26313666[source]
>Reports do next to nothing -- and 'modders' have some very real power in-game, with most fights between 'modders' ending in one of them being booted to desktop by the other exploiting a CTD bug (which are usually chat text-parser based..)

Interesting, back in the day the coolest CTD I did was to simply crank up the combo multiplier in S4 League to crash the game client on every player in the room except mine since that game was peer to peer and thus any form of hacking (teleportation, infinite melee range, instant kill, immortality, etc) was possible. The combo multiplier was set to 256 and thus every single particle was duplicated 256 times and this caused the game to crash.

330. imtringued ◴[] No.26313689[source]
This is losing them money. If they fixed the issue they absolutely would get $1+n billion instead of just $1 billion and that n alone is big enough to pay multiple years worth of 6 digit salaries just to fix this single bug.
331. imtringued ◴[] No.26313714{4}[source]
Steam is not a standalone chat product. I mostly use discord for non gaming chats.
332. rasz ◴[] No.26313715{5}[source]
Its been in Chrome since 81, Id wager a guess its in Edge and nobody noticed.
333. imtringued ◴[] No.26313727{6}[source]
This feature would bring in millions of dollars on its own. When your customer base is earning you $1 billion per year a 1% improvement is $10 million per year. You could hire an entire team of 100 engineers for that salary just to fix this single bug.
334. jack_riminton ◴[] No.26313817{6}[source]
That really is a fantastic quote and a fantastic thread!

What really stuck out is that Buffet said its the most important thing about Business and he didn't learn it in Business school. Same! I did an MBA and it was the biggest elephant in the room.

replies(1): >>26325243 #
335. jack_riminton ◴[] No.26313818{7}[source]
huh, I wonder if the technical person send it to management for a decision?
336. STRML ◴[] No.26315204{7}[source]
Titanfall did this. If I recall correctly, the full install size was about 48GB, 35GB of which was just uncompressed audio. And that was back in the days when 120GB (or less) SSDs were common. A total self-own and never fixed or understood.

It's not like decoding audio takes enough time on any modern multi-core processor to disrupt the game loop. It's not even on the radar.

337. crazygringo ◴[] No.26316208{5}[source]
Do you really think they're not?

I don't think you choose to become a manager at one of the world's top video game companies if you don't love video games.

Hell, I don't think one of the world's top video game companies would hire you as a manager if you didn't convince them, in interviews, that you understand and love their products by using them yourself.

Using your own company's products whenever possible is generally a pretty important part of being a manager.

338. da_chicken ◴[] No.26322973{6}[source]
Maybe this is what they really meant by "GOTO considered harmful".
339. brokenmachine ◴[] No.26325243{7}[source]
But he didn't specify how he arranged things to avoid the problem.
replies(1): >>26326773 #
340. jack_riminton ◴[] No.26326773{8}[source]
Fair point. The next poster explains how Amazon identifies and tries to mitigate it:

"if you’re not watchful, the process can become the thing. This can happen very easily in large organizations. The process becomes the proxy for the result you want. You stop looking at outcomes and just make sure you’re doing the process right"

replies(1): >>26335667 #
341. danlugo92 ◴[] No.26327780{4}[source]
Oh I understand now, thank you.
342. danlugo92 ◴[] No.26327782{4}[source]
Thank you.
343. zmix ◴[] No.26334676{6}[source]
Oh, wow! This was some real hardcore sh*t! :-)
344. brokenmachine ◴[] No.26335667{9}[source]
Yeah, I thought that was very insightful.
345. wing-_-nuts ◴[] No.26344626{5}[source]
Oh man, this brings back memories. That game was a great tactical shooter back in the day. Sadly my PC was unable to keep up with the higher requirements required by it's updates.
346. vagrantJin ◴[] No.26345841{7}[source]
I mean. Jesus christ. Devs used to be proud they could optimize and run their programs on slow machines. What happened? Thats like making a game for casual players but only < 5% of the global population can even afford to play it. How does this make business sense?? I'd understand if it was a game breaking new ground with some hectic VR or something like that but it isnt.
347. ric2b ◴[] No.26384217{3}[source]
I rarely play it and the load time is actually the main factor. If I have an hour to play a game waiting for GTA V to load unfortunately feels like a waste of time and a chore, so I play something else.
348. ric2b ◴[] No.26384404{5}[source]
Where does the belief that corporations are somehow perfect at doing cost-benefit analysis come from? Has anyone worked in a place where that seemed to be the case?

We're talking about an issue that has been loudly complained about for 7 years (and I am evidence that it makes people play the game much less often than they would like to) that some person without access to the source code was able to identify and fix relatively quickly, it would be surprising if it took an FTE 1 week to find this with access to the source code.

This is one of the most profitable games ever, they could hire an entire team to track this down for half a year and it wouldn't even be noticeable on their balance sheet. And I would bet money that it would have increased their active player base (which they care about because of the micro-transactions) in a noticeable way, as long as players were aware of the improvement so they would try it again.

349. ric2b ◴[] No.26384494{3}[source]
> but having GTA take 1-2 minutes to load almost certainly makes people feel better about the money they spent on the game than if it loaded up in 5 seconds like some low-production 2D adventure game.

Given that it has been the most common criticism of the game since it launched, I don't think anyone views it as a sign of quality.

350. LukvonStrom ◴[] No.26397904{4}[source]
The JS API is total crap. One has to use it to develop anything that gets a bit more complex, but MS chose to ignore things that exists in the ES standard (like normal iterators, wtf) for quite some time to preserve backwards-compatibility with IE. This make neither debugging nor any further exposure to the API any fun.
replies(1): >>26397908 #
351. LukvonStrom ◴[] No.26397908{5}[source]
SP, like any standard platform (think i.e. SAP) invites the systems integrators to customize the crap out of it, which tends to impact the bad performance even more.
replies(1): >>26405850 #
352. LukvonStrom ◴[] No.26397916{4}[source]
Some parts of it are some sort of list based CMS with poor naming
353. passivate ◴[] No.26405850{6}[source]
I see. Thanks for sharing your experience!