Page 1 of 1
Tower performance question
Posted: Wed Jan 17, 2007 12:08 am
by 9643419
The tower series is the same.
When I apply 40 numbers of sample values,
the painted speed is very slow.
Is there any workaround to improve performance?
Best Regards!
Posted: Wed Jan 17, 2007 10:38 am
by yeray
Hi wilcohsu,
we made a simple project to test drawing speed of a tower series.
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
tower1.FillSampleValues(40);
}
private DateTime startTime, now;
private void tChart1_BeforeDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
label1.Text = "";
startTime = DateTime.Now;
}
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
//calculate elapsed time
now = DateTime.Now;
TimeSpan elapsedTime = new TimeSpan(now.Ticks - startTime.Ticks);
int total = (elapsedTime.Seconds * 1000) + elapsedTime.Milliseconds;
label1.Text = "Elapsed time: " + total.ToString() + " ms";
}
The results for an AMD64 3500+ with 1GB RAM are between 600 and 700 ms
Posted: Thu Jan 18, 2007 5:18 am
by 9643419
You can try minimum form then maximun form,
the drawing delay is obvious.
Best Regards!!
Posted: Thu Jan 18, 2007 9:26 am
by yeray
The same code shows the elapsed time on re-drawing the chart when restoring after minimizing. And the times for my computer are even fewer than getting new values.
Otherwise, maximizing the chart is slower because the drawed surface is bigger. It spends about 1 second for me.
If you still have problems on this, please send us a simple example project we can run "as-is" to reproduce the problem here. You can post your files at [url]news://
www.steema.net/steema.public.attachments[/url] newsgroup.