4 ms·
Can I have it in WebGL now too? I wonder if the slow speed can be partially redeemed by having many emulated cores.
by etaioinshrdlu 5y ago
Can I have it in WebGL now too?
I wonder if the slow speed can be partially redeemed by having many emulated cores.
- arthur2e5 5y agoI can totally see a “show HN: webapp that turns your GPU into a discount xeon phi” appearing…
- pjmlp 5y agoNo, because in all their wisdom, WebGL never supported compute shaders, Intel has tried multiple times to add it to the standard and now it has been officially dropped for WebGPU. So when the browsers bother to finally replace their 2011 GPU model by WebGPU (stable), which is still MVP 1.0 compared to Vulkan/Metal/DX 12 Ultimate, then you might have it.
- contravariant 5y agoThe shader in question isn't a compute shader.
- pjmlp 5y agoI guess I misunderstood "Compute Shaders in VRChat" then.
- zamadatix 5y agoIt's about using the classic fragment shader (also sometimes referred to as pixel shader) + texture approach as a workaround for compute shaders not being available if the body wasn't clear.
- deleted 5y ago[deleted]
- pjmlp 5y agoThe classical workaround, yeah I missed that, should have read it properly instead of just skimming through. Thanks for calling me out on that.
- zamadatix 5y agoIt wasn't an oversight/mistake rather an intentional choice for WebGL to support mobile devices with OpenGL ES 2.0 (and later 3.0) which doesn't support compute shaders amongst many other things. Since it was the baseline exposure of GPU capability they wanted it to work universally not just on desktops which were on the way to being the minority of web users. We GPU is getting it because WebGL is already there as a baseline plus it has been nearly a decade and mobile GPUs are more capable.
- pjmlp 5y agoI know, the problem was never moving past ES 3.0, and now we have to wait yet another 10 years for widespread deployment of WebGPU MVP 1.0, given past history. So that, alongside the usual blacklisting issues, makes native the only option for anyone that wants to exploit the full potential of the underlying hardware.