What is a good way of optimizing the rendering and minimize CPU usage? Would calculating the coordinates for the entire path first then pass it to .lineTo
be a better choice? Keep in mind that the angle is different every time .draw
is called, so the coordinates cannot be cached and reused.