by pjmlp · 5y ago · 0 comments
- WebGL is a subset of ES 3.0, when the hardware can do GL ES 3.2
- WebGPU, when it arrives sometime during 2022, it will be a 1.0 MVP of the features from Metal, Vulkan and DX 12, with yet another shading language that looks like a mix of C++/HLSL/Rust, WGSL.
- If you just want compute, now WebGPU is the only option, although GL ES 3.2 has it. After two failed attempts from Intel, Chrome folks managed to force everyone to use WebGPU instead, so that is ready when WebGPU is ready.
- Lack of tooling, to debug WebGL you have basically to debug the browser process and try to track down your 3D calls from the browser own ones (there is a SpectorJS, which is quite simple when compared against something like Pix or REnderDoc)
- Browsers black list consumer's hardware/software, so content producers have no idea how well it actually runs.
- Indie game development moved from Flash into mobile, where tooling is much better.
Finally, I leave you the Flash demo for Unity 3 using CrossBridge[0] and Stage 3D [1], back in 2011.
https://www.youtube.com/watch?v=UQiUP2Hd60Y
[0] - https://adobe-flash.github.io/crossbridge/
[1] - https://help.adobe.com/en_US/FlashPlatform/reference/actions...
https://classic.minecraft.net/
Mobile Safari:
- Forever lacked >WebGL 1.0
- WebGL very slow compared to native
- Won't let you use accelerometer, motion control, etc., because "Privacy" (but privacy loving Apple was totally going to scan our iPhone photos until we all raised hell...)
- Web Audio stack breaks games in interesting ways desktop doesn't. "Oh, we don't let you load .mp3 audio samples by default like desktop browsers can...."
Android Chromium:
- Has 200-300ms audio latency on many devices. Here's a demo where touching/clicking the squares should have instant response (try it on desktop) but many Androids have the lag:
> https://classic.minecraft.net/
I think that site just doesn't grok touch. Tech-wise, I believe it would run okay on modern phones if the controls were sorted out.