3 ms·
I suppose it depends on your definition of 'anytime soon', but adding compute to WebGL 2.0 is something people are working on - https://www.khronos.org/registry
by onion2k 6y ago
I suppose it depends on your definition of 'anytime soon', but adding compute to WebGL 2.0 is something people are working on - https://www.khronos.org/registry/webgl/specs/latest/2.0-compute/ https://www.khronos.org/registry/webgl/specs/latest/2.0-comp...
- flohofwoe 6y agoStrange, I could've sworn I've read recently that the WebGL2 compute effort had been halted because WebGPU is (more or less) around the corner. Yet the linked document has been updated just a few weeks ago.
- Jasper_ 6y ago> WebGPU is (more or less) around the corner. You know that I know that you know that this isn't really true, lol. > Yet the linked document has been updated just a few weeks ago. But that's just because they come from the same WebGL spec repo. The 2.0-compute spec indeed hasn't been updated for a year. I imagine it was halted because WebGL 2 never saw great adoption to begin with. Though even Apple / WebKit is finally adding it, because I think they realized that WebGPU is going to take how many more years to pan out. What a disappointment. https://github.com/KhronosGroup/WebGL/blob/master/specs/latest/2.0-compute/index.bs https://github.com/KhronosGroup/WebGL/blob/master/specs/late...
- pjmlp 6y agoIf I am not mistaken, Google is the one doing the contributions to WebKit.
- fxtentacle 6y agoIn my opinion, the main issue is trust. If I buy and download a game from Steam, I trust it to not contain malware. That's why I allow that game to run with very little protection. If I visit a random website, I have to be prepared for the worst. And if I visit any website that finances itself with ads, I can assume that they will behave like offensive attackers trying whatever they can to collect more information about me in ways that I do not want. As such, WebGL needs a very strong sandbox around it, to prevent rogue websites from causing harm. For desktop games, that trust issue does not arise, because they have a different business model. That's why in my opinion, desktop OpenGL will always remain faster than WebGL.
- dahart 6y agoWebGL does have a strong sandbox, just like HTML/CSS/ES do. But desktop OpenGL has a strong sandbox too (by API design, process control, device memory paging protection, etc.), so I’m not sure why you’re thinking the threat models are any different, it’s just as bad if a game secretly hacks your computer as if a web site does. Desktop OpenGL development is dying anyway, so it doesn’t really matter how fast it is compared to WebGL in the future, but I don’t believe it is faster than WebGL due to any sandbox differences. Whatever speed differences exist are there due to features and design and speed of the host language.
- fxtentacle 6y ago"Desktop OpenGL development is dying anyway" Maybe yes, but then that's only market share lost to DirectX. I don't see the triple-A video game market shrinking anytime soon. As for the Sandbox, Microsoft recently disabled GPU virtualization because, apparently, sandboxing a GPU is really difficult. For video games, that sandbox is not used in practice. You can access pretty much all the GPU memory that you want. As for the different threat model, a video game tends to have a clear distributor. A website is more anonymous and, hence, inherently less trustworthy.
- pjmlp 6y agoIt is not dying for CAD/CAM and visualisation folks that don't want to bother with Vulkan boilerplate for nothing, on their workloads.