2 ms·
emscripten ships a "desktop GL" emulation library [0], which can have quite a bit of overhead. If you want something faster, you can use the native WebGL bindin
by Jasper_ 5y ago
emscripten ships a "desktop GL" emulation library [0], which can have quite a bit of overhead. If you want something faster, you can use the native WebGL bindings [1]
[0] https://github.com/emscripten-core/emscripten/blob/main/src/library_glemu.js https://github.com/emscripten-core/emscripten/blob/main/src/...
[1] https://github.com/emscripten-core/emscripten/blob/main/tests/webgl2.cpp https://github.com/emscripten-core/emscripten/blob/main/test...
- nobbis 5y agoThe "native WebGL bindings" still call into JS. Desktop GL emulation is just a layer on top OpenGL ES if, for example, you're still using OpenGL's fixed function pipeline (deprecated 13 years ago.)