3 ms·
webgl can be much faster because you can draw many primitives with one call. there's a lot of overhead from js down to gl.
by spot 14y ago
webgl can be much faster because you can draw many primitives with one call. there's a lot of overhead from js down to gl.
- jaipilot747 14y agoThen what is stopping browser vendors from implementing canvas directly in gl directly, making canvas more or less a wrapper?
- greggman 14y agoCanvas is directly implemented in gl (or directx) in most browsers at this point. WebGL is still faster like the poster above says because you as the programmer an can make optimizations that are not possible with the canvas api like drawing many things with one call. http://blog.tojicode.com/2012/07/sprite-tile-maps-on-gpu.html http://blog.tojicode.com/2012/07/sprite-tile-maps-on-gpu.htm...