We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Bad performance of the SfChart

Thread ID:

Created:

Updated:

Platform:

Replies:

127034 Oct 23,2016 05:11 AM Nov 20,2016 11:36 PM WPF 5
loading
Tags: SfChart
Janosch Kunczik
Asked On October 23, 2016 05:11 AM

Hello,
I am using the SfChart to display oscilloscope like waveform as descibed

Janosch Kunczik
Replied On October 23, 2016 05:35 AM

Hello,

I am using the SfChart to display oscilloscope-like waveforms as descibed here. Unfortunatley using the SfChart like this yields terrible performance. On a i7-6700 processor, displaying three different charts consumes 26% of the overall CPU capacity. It doesn't make any difference whether I am setting the complete ItemsSource on every update or just update single data points by using the INotifyPropertyChanged event. The Visual Studio diagnosis tool indicates that the garbage collection runs multiple times per second.

Is there a way to improve the performance of the SfCharts (e.g. by recycling objects of the SfChart instead of creating them on every update)? This improvement would hava a big impact on the quality and overall performance of our software. I included a MWE so that you can analyze the issue in detail.

Thanks,

Janosch Kunczik

Attachment: SfChartIssueDemo_4987bc88.zip

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On October 24, 2016 09:51 AM

Hi Janosch, 
  
Thanks for contacting Syncfusion Support. 
  
While dynamically update the data points, the rendered series UIElement’s points are re generated for every updates (31 milliseconds). Since we have drawn single “Path” element for AreaSeries.  So the CPU usage is increased while rendering the AreaSeries in UI. 
  
When you update(insert) the same data point to the items source, Area Series(Path) will not be updated in UI (second round of update in your sample). But in this case, CPU usage increased in SfChart.  We have considered this as defect and logged defect report for this. The fix for the issue will be included in our Volume 4,2016 main release which is estimated to be available on end of November 2016. 
  
Regards, 
Devi 


Devi Aruna Maharasi Murugan [Syncfusion]
Replied On October 25, 2016 05:01 AM

Hi Janosch, 
  
As we stated in our previous update, we have considered the CPU usage increased in SfChart, while updating(inserting) the same data value in the items source as defect and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates. 
  
  
Regards, 
Devi 
  


Janosch Kunczik
Replied On November 19, 2016 12:46 PM

Hello Devi,

I had the chance to test your fix. With version 14.4.0.15 the CPU load averages between 0%-0.1%, while the load before was 26%. You did a great job there.

Thanks,

Janosch

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On November 20, 2016 11:36 PM

Hi Janosch, 
  
Thanks for your update. 
  
Please let us know, if you need any further assistance. 
  
Regards, 
Devi 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;