Why is Contour Series much slower when using filled mode

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
vejazi
Newbie
Newbie
Posts: 5
Joined: Wed Nov 07, 2018 12:00 am

Why is Contour Series much slower when using filled mode

Post by vejazi » Thu Oct 10, 2019 8:42 am

I created a TeeChart with two TContourSeries: One with filled set to false and one set to true. Both get exactly the same data and both are not active while feeding the data to them.

When I activate the not filled series it takes less than a second to paint itself. Not so the filled series. It takes at least 10 times longer to draw itself.

Why is that so? I would imagine that the filled series uses the same algorithm as the not filled one and then some sort of flood fill is used. That should not take this long.

Is there a way to speed up painting of the series in filled mode? Data reduction is not an option here.

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

Re: Why is Contour Series much slower when using filled mode

Post by Yeray » Fri Oct 11, 2019 12:50 pm

Hello,

I'm afraid the filling of the contour series isn't so simple as one could think at a first glance.
We are internally using a TIsoSurface to draw the cells, which makes the process slower.

Some references:
https://www.steema.com/support/viewtopi ... =3&t=12326
https://www.steema.com/support/viewtopi ... =3&t=10796
http://bugs.teechart.net/show_bug.cgi?id=1438
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

vejazi
Newbie
Newbie
Posts: 5
Joined: Wed Nov 07, 2018 12:00 am

Re: Why is Contour Series much slower when using filled mode

Post by vejazi » Fri Oct 11, 2019 1:13 pm

Hello Yeray,

thanks for the info. So I will have to find a way to distract the user from waiting for the chart.

Is there some kind of progress event while the chart is calculated?

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

Re: Why is Contour Series much slower when using filled mode

Post by Yeray » Mon Oct 14, 2019 10:05 am

Hello,

The method that needs more time is the TIsoSurface.DrawCell. We could add an event in it but it could have a negative impact on the performance.
Ie:
Project1_2019-10-14_12-02-28.png
Project1_2019-10-14_12-02-28.png (25.95 KiB) Viewed 10383 times
I'll send you a test unit and an example of usage.
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