3 ms·
> Try out any "enterprise" app that thinks its a good idea to load 25,000 widgets on one page. That'll show you the meaning of "CPU bottleneck". Depending on t
by wolfgke 10y ago
> Try out any "enterprise" app that thinks its a good idea to load 25,000 widgets on one page. That'll show you the meaning of "CPU bottleneck".
Depending on the implementation it might also be a GPU bottleneck.
- nitrogen 10y agoIt's pretty crazy how video games can display thousands of objects and millions of vertices at 100+fps, yet web browsers and applications can struggle to display more than a handful.
- pcwalton 10y agoYep. That's largely because 2D vector graphics APIs from the '90s are poor fits for GPUs (and stream processors in general, really).
- Tloewald 10y agoIf you have a look at the code on many websites the answer is ludicrous amounts of bloat.
- ssalazar 10y agoIts not crazy when you consider typical video game economics (hundreds of developers/long dev time/high budgets/high price per unit) vs. typical website economics (handful of developers at best/short dev time/low budget/microscopic price per "unit"). Video games are often intimately tied to the underlying hardware/software stack allowing further optimization whereas the same webpage can often operate unaltered on a multitude of devices. And video games are often judged by how many "objects and vertices" they can show and how fast they can show them, whereas websites have other criteria.
- sbierwagen 10y agoThat's because the video game engines doesn't have to be hardened against malicious asset files. All the code in a video game runs at the same permissions level, which you definitely can't say about a random page on cnn.com.
- zubat 10y agoBrowser content has to support all the features and they add up pretty quickly. For example a large scrolling list with thousands of items can be solved by a gamedev by mandating all content be the same size and applying a tiling rule. A list in a webapp is likely to be held to a higher standard and so needs to consider heuristics to find the position of content, dynamic updates, etc.
- Qwertious 10y agoThat's what 10+ full-time engine devs working full-time on the project from the start can get you, I suppose.