I'm writing an object that plots a *lot* of points as a curve according to an analysis.
I would have assumed that the speed would be dependent on the number of points. However, what I'm finding is that if the data should happen to form a nice smooth curve then it's much faster than with less points with a very jagged curve. There is nothing in my end of the drawing code that would create this kind of result (As I've said I'd expect more points equals slower from my code).
1 - Is there some kind of simplification of the curve happening maybe (I'm repeatedly calling the lineto routine)?
2 - My data doesn't change very often. Is there a way of caching a full version somewhere and only drawing the bit that is being displayed (the axes of the display are variable)? Am I likely to see a speedup with this kind of approach, or is it possible that the matrix transforms built in to the graphics engine are the bottleneck?