This is a migrated thread and some comments may be shown as answers.

Memory and CPU problem in Line and StepLine Series

1 Answer 76 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Yonghan
Top achievements
Rank 1
Yonghan asked on 22 Jan 2011, 12:23 PM
Hi,

I have memory problems now have been blocked.
In Line and StepLineSeries,
If I add DataPoint programmatically per every 5 seconds, then  the memroy goes 1.3GB  and cpus high in few minites.
see mem1.png and app1.png

DataSeries.Add(new DataPoint() {XValue=t, YValue=sp} );

So, I created a hole DataPoint array and added OnLoaded. and update each YValues. the memory & cpu seems to be stabled.
But, I need Empty YValue not ZERO. I can't use AxisX AutoRange because empty series have all zeros.
see mem2.png and app2.png

double t = FindPosition(currentTime);
DataSeries[t].YValue = sp;

Of course, I see LiveData demo sample code. but I can't use this.
the LiveData sample have multple axis with same Y values.
But my app have max 6 series having each YValues per chart.
only one of thoes series is a live data. I don't know how to MVVM in this case.

How to use MVVM having different Ys and mixed static and livedata.

====
If I collapsing all chart, then no more increasing memory and CPU usage is stabled.
I think the memory and CPU problems are caused visual effects when DataSeries.Add(new DataPoit()).
see mem3.png

EnableAnimations, EnableTransitionAnimations are not enough!

How to disable all visual effects?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 26 Jan 2011, 10:07 AM
Hi Yonghan,

We have addressed your inquiry in the other support thread you have opened on the same topic.


Regards,
Giuseppe
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Chart
Asked by
Yonghan
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or