Hacker News new | ask | show | jobs
by huy-nguyen 2996 days ago
How much optimiztion can you squeeze out of webgl + wasm? Don’t you still have to call into JS?
1 comments

Yes, it's definitely good practice to reduce calls to WebGL as much as possible (for instance through batching, instanced rendering, maintaining your own state cache etc...). Performance behaviour of WebGL is very different from a native GL implementation, but when keeping that in mind it's not too bad all in all.