bsansouci / reasongl

Reason bindings to WebGL and OpenGL.
107 stars 8 forks source link

Expose external for Bigarray instead of normal functions #11

Open bsansouci opened 5 years ago

bsansouci commented 5 years ago

This is to benefit from the uncurried calls in JS. After a very simple profiling of our purple rain demo, I've noticed that if we made just the get/set functions not go through Curry._3, we'd more than half the runtime of the user code, going from 19ms to 8ms, in our purple rain demo.

Funnily enough it doesn't really change the frame rate, because it seems like the operations we're doing on the GPU block the call to requestAnimationFrame: 48374310_523127758200314_8065659281480876032_n