Actually even using the code above with assembler, it's still too slow at 320x240. It's probably because map insists on creating a new ArrayBuffer for each call.
Looks like building it into Espruino itself is probably the only way forward then. I guess the functionality would be handy too (especially as E.toArrayBuffer can take the {data: ..., count:#} argument too).
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.
Actually even using the code above with assembler, it's still too slow at 320x240. It's probably because
map
insists on creating a new ArrayBuffer for each call.Looks like building it into Espruino itself is probably the only way forward then. I guess the functionality would be handy too (especially as
E.toArrayBuffer
can take the{data: ..., count:#}
argument too).