Like said, it is the sqrt that makes me nervous, but its maybe needed here.
I think it depends a lot on the shape, how to
handle it.
For lines, circles, squares, a pre-calculated step will work nicely.
For ellipses and other complex paths, maybe you always need varying step-sizes during drawing.