Draw dotted lines

Hello,

Is there a way to draw dotted lines with ALINE?

Hi

Sorry, not out of the box.
You can do a manual wrapper and draw a bunch of short lines, of course, but there’s nothing built-in for this.

Okay, thank you for your answer !

This may be a silly question, but : is drawing a bunch of short lines less performant than drawing a single line ? Would the performance difference be significative ?

It is less efficient. More drawing primitives have to be processed, and more triangles get sent to the gpu.
However, unless you are drawing a lot of lines, I doubt the difference will be significant.

Okay, thank you.

(I love ALINE, I use it in all my project, I find it super useful !)

1 Like

Thank you for the kind words :slight_smile: