I want to have some animation.
I've already a JS-object supporting shifting in all directions (up/down/left/right) or rotating.
In Javascript looping throgh an Uint8array for rotating takes some time (up to 100ms).
Tested also a c-function to read a row from arraybuffer, but even using this takes some time.
Same function, in C, takes 5ms only
Some other functions similiar good old tennis game will follow, once I get the basics done.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
jsvArray, good point, I will try.
I want to have some animation.
I've already a JS-object supporting shifting in all directions (up/down/left/right) or rotating.
In Javascript looping throgh an Uint8array for rotating takes some time (up to 100ms).
Tested also a c-function to read a row from arraybuffer, but even using this takes some time.
Same function, in C, takes 5ms only
Some other functions similiar good old tennis game will follow, once I get the basics done.