3 ms·
The good news from yesterday was that IE10 will have typed arrays. I assume that Safari will enable them by default soon - so all modern browsers will soon supp
by azakai 15y ago
The good news from yesterday was that IE10 will have typed arrays. I assume that Safari will enable them by default soon - so all modern browsers will soon support typed arrays, and should run code like this very well.
Right now this demo is faster in Chrome it seems, while the original Broadway (H264 instead of WebM) is faster in Firefox, but the important thing is that the differences are not that big, and all JS engines are in very good shape and improving. We'll have even better performance a year from now.
- comex 15y agoActually, Safari already enables typed arrays by default (separately from the rest of WebGL), but the latest stable version doesn't support Float64Array. The demo works fine on the WebKit nightly, although with considerably less FPS than either Firefox or Chrome.
- azakai 15y agoGood to know, thanks for the info! Hopefully Float64Array will be added soon. I'm surprised it is much slower than Firefox and Chrome, though. Apple recently enabled the new JSC JIT on all platforms, I thought, which should be quite fast. Maybe typed arrays have not been specifically optimized yet or something like that.