whs.js
whs.js copied to clipboard
Proposal: Use FlowJS and compile to asm.js
As we work with webgl - speed matters. I seriously think now about using Flow and then compile to Asm.js. Links:
- https://flowtype.org/
- https://github.com/RReverser/babel-plugin-asm-js
- A post about it: https://rreverser.com/started-work-on-es6-asm-js-conversion/
@WhitestormJS/whitestormjs-dev-team What do you think?
Version:
- [x] r12 (dev)
- [ ] r11
- [ ] r10
- [ ] r9
- [ ] r9 (dev)
- [ ] r8
- [ ] r7
Issue type:
- [ ] Bug
- [x] Proposal/Enhancement
- [ ] Question
Tested on:
--- Desktop
- [ ] Chrome
- [ ] Chrome Canary
- [ ] Chrome dev-channel
- [ ] Firefox
- [ ] Opera
- [ ] Microsoft IE
- [ ] Microsoft Edge
--- Android
- [ ] Chrome
- [ ] Firefox
- [ ] Opera
--- IOS
- [ ] Chrome
- [ ] Firefox
- [ ] Opera
Hmm, IDK.
Is this really worth to improve the performance than refactoring costs?
@preco21 let's keep it for featured releases
This looks cool - was not aware there was a flow -> asm tool. However may not provide much performance boost if underlying Three itself is not also written as Flow.
@thejmazz I agree. Three.js should be affected too. But I think they will soon use SIMD and other optimizations. That would be cool for physics too