Hi,
I try to create a game in dart, but I want to run it on chrome, firefox so the code is converted into js (via dart2js). I use a lot vector_math (pseudo physic, collisions, ...) But the js generated by dart2js for vector_math is full of "useless code" : range check, use of $index instead of [ ] native operator, ...
Result :
~ 1 fps for code generated by dart2js on Firefox (on a sample application)
~ 10 fps for same code but where I manually replace the js code of Vector3.setFrom, Vector3.add, Vector3.sub
Does someone has a better idea to improve the current state (other than open issue and wait) ?
Cheers,
/davidB
all the code is available (on github : glf, dartemis_toolbox, vdrones)