Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A comparison with webGL 2 would be more fair #22

Open
LifeIsStrange opened this issue Jul 25, 2022 · 2 comments
Open

A comparison with webGL 2 would be more fair #22

LifeIsStrange opened this issue Jul 25, 2022 · 2 comments

Comments

@LifeIsStrange
Copy link

LifeIsStrange commented Jul 25, 2022

very useful project btw :)
@milhidaka friendly ping

@milhidaka
Copy link
Owner

Is there a blas library for WebGL2?

@LifeIsStrange
Copy link
Author

LifeIsStrange commented Jul 26, 2022

Well apparently this blas library planned to add support in 2019, no idea if he did
https://groups.google.com/g/webgl-dev-list/c/T4d-PgqtVIU

Apparently it double the throughput.
While webgl2 has many features that might enable blas optimizations, the biggest one seems to be compute shader, which the library I linked use.
Webgl 2 is based on the antiquated opengl es 3.0 while compute shader have been brought in open gl es 3.1 (despite having existed for decades on OpenGL non-es)
Anyway there is a w3c spec foe webgl2 compute shades and chromium supports it (obviously supporting doesn't actually mean anything they are just ineptly white/blacklisting feature flags on the external ANGLE library)
Anyway because of retrograde conservative politics such as Google and mozilla submitting to Apple OpenGL deprecation in addition to the psychological nih syndrome of making the webgpu instead of exposing vulkan, the end result is that the webgl2 compute shader boolean is not enabled but can be made via a flag
https://github.com/9ballsyndrome/WebGL_Compute_shader
Hence while not applicable it is still possible to compare webgl2 with compute shader blas vs webgpu for the sake of knowledge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants