Memory and CPU problem in Line and StepLine Series

2 posts, 0 answers
  1. Yonghan
    Yonghan avatar
    27 posts
    Member since:
    Dec 2010

    Posted 22 Jan 2011 Link to this post


    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?

  2. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 26 Jan 2011 Link to this post

    Hi Yonghan,

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

    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top