Doing math in javascript is painful. Needing to alloc just to do ez Vector3 calculations as well no op overload support is faff city supreme
Conversation
Ugh. Doesn't ECMAScript 6 allow you to have typed arrays or something? Have you looked into asm.js?
1
yes can do typed float arrays but that route is a bit extreme just to do something simple like "vec_a+vec_b"
2
Also, have you looked into TypeScript? Might be good for keeping your types consistent, which should help the JIT.
1
Replying to
I am unfortunately speculating though - as stated before, I don't have any working experience with JS - only stuff I've heard.

