drawPath seems to be more efficient on cpp target then moveTo and lineTo commands