Posted on 1998-11-17
I've created a control which basically just draws a trace according to data supplied to it. It does this using the line(x1,y1)-(x2,y2) function.
Basic problem - it's slow. I may have up to 32 of these updating continuously in my project, and with the possibility of 1000 data points - this can mean drawing tens of thousands of lines in each iteration - which I want to happen once every two seconds or so.
So, what can anybody suggest? Is there a better way of drawing these lines which goes faster? I was hoping I may be able to get each instance of my control to work in parallel using multithreading, but I can't figure it out.