4 ms·
> For example with Wasm and WebGPU it's possible to create AAA games running in the browser. This has been promised since at least the WebGL and asm.js days. I
by flohofwoe 5y ago
> For example with Wasm and WebGPU it's possible to create AAA games running in the browser.
This has been promised since at least the WebGL and asm.js days. It still won't happen, but not mainly for technical reasons, but for business reasons.
...but of course also some technical reasons. Asm.js/WASM and WebGL/WebGPU are fine, but most other web APIs are a mess and the web is a highly unstable platform, APIs are deactivated or deprecated on a whim, APIs change behaviour unpredictably, behaviour differs between browsers, etc etc...
TL;DR: the web needs a proper "DirectX initiative" like what Microsoft did in the late 90's to get Windows gaming off the ground.
- nsomaru 5y agoWhat are the business reasons? Surely the web is just a platform for delivery? Payment etc can happen through the browser.
- flohofwoe 5y agoI agree, but tell that to the "money people" in big game studios ;) The web simply isn't on their radar, even mobile isn't for the most part. They want strong centralized platforms like Steam, EGS, Xbox, Playstation or Nintendo and a platform owner to negotiate with. This can change very quickly if there's actually some breakthrough web game, but that hasn't happened so far, and nobody wants to be the first to take the risk.
- coretx 5y agoBoth Unreal Engine and Unity already have Google Stadia for a compile target ( Debian/vulkan )and it runs in the browser. As consoles have become more and more generic and all carry a browser, less money is being invested in platform specific engines because there is less relative performance increase & return on investment compared to the past. ( Games sold the platform, not the other way round ) Risks have been taken by big players and everything is becoming more and more platform agnostic therefore we could reasonable expect "breakthrough" when they are done milking the cow previously invested in and see them expand to a bigger market.
- flohofwoe 5y ago> ...and it runs in the browser That's not correct though, the game runs on a Linux box in Google's datacenters (granted, from a business perspective that's nitpicking - but not quite, see below, but it's a massive difference from a technical perspective). Scaling to large audiences is much more expensive with the game streaming approach though (but we'll never really know because Stadia bombed, just as all other game streaming platforms before).
- coretx 5y agoIt's not just a remote control video feed ( Unlike other game streaming platforms ) so there is tons of incentives and capability for them to offload as much as possible onto the client.
- perryizgr8 5y ago> the web needs a proper "DirectX initiative" like what Microsoft did in the late 90's to get Windows gaming off the ground Why? We can already play AAA games on our computers. It works very well, much better than anything web-based. Why would anyone put effort into replicating the same thing inside the browser?
- flohofwoe 5y agoMostly independence from the whims of platform owners who control the distribution, a space to try out quirky new ideas, and less hassle both for devs and users (no lengthy download or installation process for instance). This is much more important for indie devs than AAA devs though (the current problems of the web platforms are not really 'AAA specific'). Also, don't forget that PC gaming could very well have died out during the transition from DOS to Windows without Microsoft actively supporting game development on Windows (with the DirectX APIs), without this, AAA gaming could very well be console-exclusive now.
- perryizgr8 5y ago> Mostly independence from the whims of platform owners who control the distribution Agreed, however platforms that restrict app distribution also heavily restrict what you can run via the browser (see Ios). So the benefit is minimal. > a space to try out quirky new ideas This has nothing to do with web. Look at steam's catalog. Plenty of whacky quirky stuff is available. > no lengthy download or installation process for instance Why do you think AAA games will not need downloading assets and logic? > This is much more important for indie devs than AAA devs though I agree, but this is a solved problem with Steam. No need to develop your own over the web.
- flohofwoe 5y ago> Why do you think AAA games will not need downloading assets and logic? As internet connections get faster it makes sense to stream/prefetch data directly from CDNs as needed instead of downloading everything upfront. > Look at steam's catalog. Plenty of whacky quirky stuff is available. Agreed, but that's the exception, not the rule. Look at Apple's app store ecosystem for a counter example where apps and developers are banned on Apple's whim. This couldn't happen on the web.
- account42 5y ago> TL;DR: the web needs a proper "DirectX initiative" like what Microsoft did in the late 90's to get Windows gaming off the ground. You want one browser vendor to implement a proprietary API and then have the ramining vendors try to emulate it?
- flohofwoe 5y agoWell that's what Google already does anyway with web APIs, except that their APIs are usually a broken mess (see WebAudio). But apart from that, Microsoft was in a unique position to dictate standards to GPU vendors, as draconian as it sounds, this worked much better than Khronos' design-by-committee approach in OpenGL.
- torginus 5y agoI've always wondered why nobody built Kongregate 2.0 using modern web technologies. The indie game dev scene seems to be thriving, and you can play tons of games for free on itch.io While some of them have a webplayer, it's disorganized, and the user experience is usually terrible.
- com2kid 5y agoIn its last few years Kongregate was largely JS games. That didn't help the large move to mobile gaming by its primary audience (which I'm guessing was teens). Towards the end Kongregate became a platform for idle games that pushed users hard towards pay to win. Sucks, but they grew huge off the glory days of ad revenue and I presume they had to do something to keep surviving.
- Ygg2 5y agoIs webGPU fine? https://github.com/gpuweb/gpuweb/issues/566 https://github.com/gpuweb/gpuweb/issues/566 Basically. Rather than doing something better w3c is designing by committee so hard it somehow made worse OpenGL. A fellow contributor, that had to deal with pain of OpenGL, laughed this shit out of the gate. And I mean look at it. Who in their right mind looked at that and said, yeah that looks decent.
- skitter 5y agoApparently wgsl was created because SPIR-V isn't well suited for being an intermediate representation to target graphics APIs other than Vulkan itself. Some notes of intrest: https://kvark.github.io/spirv/2021/05/01/spirv-horrors.html https://kvark.github.io/spirv/2021/05/01/spirv-horrors.html
- Ygg2 5y agoHad a discussion with that colleagues I spoke. He pointed me to some interesting discussion in FNA Discord. Basically bunch of stuff listed in that blog are Rust specific uint vs int. Others are kinda standards problem of undefined behavior being well - undefined. Gamedevs are used to this, but not Rust devs. I'm reminded of xkcd https://xkcd.com/927/ https://xkcd.com/927/ So rather than relying on previous work, they wrote their own somehow ugliest standard.
- Jweb_Guru 5y agoNone of what's outlined on that blog has anything to do with Rust. And wgpu has to validate code for undefined behavior because it needs to run in browsers, as well as translate it to other backends that aren't SPIRV--it again doesn't really have anything to do with Rust. In fact according to the Rust memory model, most UB on the GPU would technically be okay (though obviously not ideal) but not in the context of a browser. So just saying "eh that stuff is undefined" or "this is just Rust stuff" doesn't really address the issues outlined there.
- 5y ago