AChartEngine is very slow with big data

I am working on achartengine (achartengine-1.0.0) in android app, it works fine with small data like <= 600, but when I draw glasses about 2000+ ( will use about 8000 or more ) the graph gets real slow! even if the user waits for a delay, but when he touches and moves the graph, the graph takes a long time again!

How can I get rid of this slowness?

Thank you in advance

+3


source to share


2 answers


Version 1.1.0 contains a number of performance improvements. You can download this version here .

Most of the time is spent on rendering, so you can improve the situation:

  • Disable anti-aliasing mRenderer.setAntialiasing(false);

  • Don't use PointStyle

    s


Other offers:

  • Add only the data that you want to display in the model. What does a 2000 point chart look like?
+2


source


As Leco mentioned in the comments above, removing setLineWidth () or setting it to a lower value improved performance significantly.



0


source







All Articles