3 ms·
cool project! But one question: > A bug that still stands in some Browsers (Chrome and Safari) prevents WebGL from using the Uint8ClampedArray directly. Instea
by blt 9y ago
cool project! But one question:
> A bug that still stands in some Browsers (Chrome and Safari) prevents WebGL from using the Uint8ClampedArray directly. Instead, for these browsers we have to create a Uint8Array view for each array for each frame. This operation is pretty fast since nothing needs to be copied, but I'd still like to do without it.
Why worry about it if you're not actually copying the buffer? It's like allocating one extra tiny object per frame, right? It seems like it would be totally insignificant compared to the rest of the workload.
- ygra 9y agoCompare it to a compiler that refuses to compile invocations of methods with optional parameter correctly. Sure, you can just insert the missing arguments with their default values, but you shouldn't have to. It's an inconvenience and annoying, especially for something that should just work.