Tower performance question

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
wilcohsu
Newbie
Newbie
Posts: 40
Joined: Mon Dec 18, 2006 12:00 am

Tower performance question

Post by wilcohsu » Wed Jan 17, 2007 12:08 am

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!

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed Jan 17, 2007 10:38 am

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

wilcohsu
Newbie
Newbie
Posts: 40
Joined: Mon Dec 18, 2006 12:00 am

Post by wilcohsu » Thu Jan 18, 2007 5:18 am

You can try minimum form then maximun form,
the drawing delay is obvious.


Best Regards!!

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Thu Jan 18, 2007 9:26 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply