Hello,
I have a program that is plotting 262,000 points for a plot. The
performance is fine except when I set the line width to "2" or
greater. Then my program comes to it's knees. After about
45secs it comes back.
Try gen-ing up a quick program and check it out for yourself. Put
up a button to change line width to '2': scatterPlot1.LineWidth =
2; Put up your performance monitor (Ctrl-Alt-Del) and minimize to
watch CPU usage in systray.
public Form1()
{
int _SizeArray = 262000;
InitializeComponent();
double[] x = new double[_SizeArray];
double[] y = new double[_SizeArray];
Random rand = new Random();
for (int i = 0; i < _SizeArray; i++)
{
x[i] = (double)i/10.0;
y[i] = rand.NextDouble();
}
xAxis1.Range = new NationalInstruments.UI.Range(0, _SizeArray);
scatterPlot1.PlotXY(x,y);
}
Also not that when it finally does come back, the visual y values for the plot are larger!
I am using XP, VS2005, MS8.01, Dual Zeon 3.0, 3 GB ram, high end nvidia graphics card.
Scott