The time to draw the dial on a Bangle2 (with radius 88 rather that 120) with the code above took 376ms. The time using a version of drawRotRect that does not use transformVertices was 490ms - or 114ms slower. Timed using:
var tt = Date.now();
Nice. And thanks both for showing how you benchmarked it.
© Espruino, powered by microcosm.
Report a problem