Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: OpenGL/WebAssembly vs. WebGL

  1. #1
    Newbie Newbie
    Join Date
    Oct 2017
    Posts
    1

    Lightbulb OpenGL/WebAssembly vs. WebGL

    This might be a stupid question since I'm just now diving into this stuff, but please bear with me.

    Would it be useful to directly compile OpenGL to WebAssembly for use in the browser? Would this bring any significant performance benefits in very dynamic environments (i.e. many draw calls)?

    Are people generally satisfied with using WebGL or is it limiting since it is only a subset of OpenGL (based off OpenGL ES 2.0 specification) instead of the complete OpenGL API? I can't seem to find a clear answer online. Some people like using WebGL and others don't.

    Basically, would it be useful/feasible to use OpenGl compiled to .wasm for use on the web instead of WebGL.

    I really appreciate any responses, please enlighten me!

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    2,463
    Quote Originally Posted by AugustoAlvarez View Post
    Basically, would it be useful/feasible to use OpenGl compiled to .wasm for use on the web instead of WebGL.
    No. WebGL is the only way that you can use the GPU from the browser. Compiling e.g. Mesa to WebAssembly (or asm.js) will produce something that runs entirely on the CPU, and that will be slower than using the GPU even if WebAssembly has equivalent performance to native code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •