In this case Espruino still soldiers on and allocates arrays (eg the buffer for your offscreen >graphics) split across memory - however that means that from then on every operation on that >data ends up substantially slower.
This could be it as removing the draw of the outer yellow ring and reducing the arraybuffer to 128x128 from 160x160 seems to eliminate the issue all together and bring the time for the function down to 36ms.
I think I am de-allocating all memory using freeResources(). will have a try of 'E.defrag()' at some point.
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.
This could be it as removing the draw of the outer yellow ring and reducing the arraybuffer to 128x128 from 160x160 seems to eliminate the issue all together and bring the time for the function down to 36ms.
I think I am de-allocating all memory using freeResources(). will have a try of 'E.defrag()' at some point.