Gantt too slow

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Pujol1986
Newbie
Newbie
Posts: 58
Joined: Thu Jan 29, 2009 12:00 am
Location: Barcelona
Contact:

Gantt too slow

Post by Pujol1986 » Tue Nov 29, 2011 4:21 pm

Hello,
I've a dataset with about 600 rows that i bind to my gantt datasource.

When I see the gantt series on the screen the program works too slow.

There are any solution to this issue?


Thanks in advance.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Gantt too slow

Post by Sandra » Wed Nov 30, 2011 4:49 pm

Hello Pujol1986,

You can take a look in the technical article Real-Time Charting where you can find a few tips to increase your performance. On the other hand, if the tips don't help you to solve your problem, please send us a simple project so we can try to help you.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Pujol1986
Newbie
Newbie
Posts: 58
Joined: Thu Jan 29, 2009 12:00 am
Location: Barcelona
Contact:

Re: Gantt too slow

Post by Pujol1986 » Wed Nov 30, 2011 6:00 pm

Here is an example of the issue.

Try to move the gantt with the right mouse button and see how slow it works.


Thanks in advance.

I've a message that say that the file is too big. My file size is about 1,17 MB.

Where I can send the example of the issue?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Gantt too slow

Post by Sandra » Thu Dec 01, 2011 11:32 am

Hello Pujol1986,

If you upload the Winforms example, I recomend remove bin and obj folders and try attached again the example here. But, if you don't upload a Winforms example or you don't want remove bin and obj folder, you can upload your files in Steema upload page

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Pujol1986
Newbie
Newbie
Posts: 58
Joined: Thu Jan 29, 2009 12:00 am
Location: Barcelona
Contact:

Re: Gantt too slow

Post by Pujol1986 » Thu Dec 01, 2011 2:19 pm

I uploaded the file and I have the following message:

Received Release.zip Content Type application/octet-stream Length 1236536

Thanks in advance.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Gantt too slow

Post by Sandra » Fri Dec 02, 2011 2:43 pm

Hello Pujol1986,

Thanks for your example. But, we would be very grateful if you can arrange a simple code or send your data file so we can reproduce exactly your problem here and we can try to suggest you a good solution.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Pujol1986
Newbie
Newbie
Posts: 58
Joined: Thu Jan 29, 2009 12:00 am
Location: Barcelona
Contact:

Re: Gantt too slow

Post by Pujol1986 » Fri Dec 02, 2011 3:39 pm

Hello,
Here is the file Form1.vb where I load the data to be showed on the gantt.
I hope this will help.

Thanks.
Attachments
Form1.zip
(4.05 KiB) Downloaded 628 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Gantt too slow

Post by Narcís » Mon Dec 05, 2011 11:41 am

Hello,

Thanks for the file but I'm afraid the Form.Designer.vb is missing. Would you be so kind to attach it as well? Alternatively you could attach the full project folder excluding bin and obj folders.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Pujol1986
Newbie
Newbie
Posts: 58
Joined: Thu Jan 29, 2009 12:00 am
Location: Barcelona
Contact:

Re: Gantt too slow

Post by Pujol1986 » Mon Dec 05, 2011 2:33 pm

Hello,
here is the project.

Thanks in advance.
Attachments
GanttPrueba.zip
(21.93 KiB) Downloaded 540 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Gantt too slow

Post by Narcís » Mon Dec 05, 2011 4:18 pm

Hello,

Thanks for the example project. Adding line below improves its performance. Does it behave as expected now?

Code: Select all

    TChart1.Aspect.SmoothingMode = Drawing2D.SmoothingMode.None
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Pujol1986
Newbie
Newbie
Posts: 58
Joined: Thu Jan 29, 2009 12:00 am
Location: Barcelona
Contact:

Re: Gantt too slow

Post by Pujol1986 » Tue Dec 13, 2011 2:34 pm

Narcís wrote:Hello,

Thanks for the example project. Adding line below improves its performance. Does it behave as expected now?

Code: Select all

    TChart1.Aspect.SmoothingMode = Drawing2D.SmoothingMode.None

gracias por la ayuda.
Ahora funciona el doble de rápido, pero continua funcionando lento.

There is something more that I can do to make it run faster?

Thanks in advance.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Gantt too slow

Post by Sandra » Wed Dec 14, 2011 3:23 pm

Hello Pujol1986,

You have a way to increase performance of your project, is use TeeChartDirect2D that allow you draw fast Charts with a lot of values. But, it is only available to version 4, for a series of requirements that you need to use this assemble; because these are not compatibles in oldest versions of TeeChart.Net as explain in the WhitePaper_Direct2D.pdf. For this, I recommend that test the TeeChartDirect2D that you found in the last version 4 eval version, try to implement your application using it and check if your performance increase. On the other hand, you need know that version 4 of TeeChartFor.Net is more optimized and increase the performance of the projects made in oldest versions.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply