Hi
I'm building an embroidery previewer.
An embroidery consits of normaly about 30 000 movements (where a line should be drawn)
So my application should draw about 30 000 lines, on my computer this takes 18-20 seconds.
My question is how should i draw these lines the fastest way possible?
If I also would like to have them gradient for example if the color is red I would like the line to go from darkred to red and back to dark red again.
I have tried using a gradient bruch and drawing the line from start to middle and from middle to stop but that means I have to draw 60 000 lines instead.
Is there a better way?
Antropoid
Member
70 Points
15 Posts
Drawing many lines, makes a performance issue
Oct 28, 2005 12:45 PM|LINK
I'm building an embroidery previewer.
An embroidery consits of normaly about 30 000 movements (where a line should be drawn)
So my application should draw about 30 000 lines, on my computer this takes 18-20 seconds.
My question is how should i draw these lines the fastest way possible?
If I also would like to have them gradient for example if the color is red I would like the line to go from darkred to red and back to dark red again.
I have tried using a gradient bruch and drawing the line from start to middle and from middle to stop but that means I have to draw 60 000 lines instead.
Is there a better way?
/Jimmy