3 ms·
I'd recommend using {UI,I}nt{8,16,32,64}Array and Float{32,64}Array (from WebGL) whenever possible in your code, falling back to JS natives.
by Sephr 16y ago
I'd recommend using {UI,I}nt{8,16,32,64}Array and Float{32,64}Array (from WebGL) whenever possible in your code, falling back to JS natives.
- shazow 16y agoI've been meaning to try WebGL. Any interest in contributing an example into structs.js? Edit: Or I guess it would need to go into a separate <script> block, could make a structs_webgl.js one.
- mmastrac 16y agoIn my testing that I did for our DotSpots client-side code (basically MD2 over tokenized text), I found that the WebGL arrays performed at best the same as native arrays. In some cases they did much worse. This was universal across webkit and gecko as well. It's still worth testing - I'm hoping that the JIT engines are finally able to optimize them properly.