I have created a component wich actually draws a country map containing about 400 cities.
My first approach was to write a 'country' class (UIComponent) which created 400 city objects (UIComponent also).
Each city object draws its own shape using graphics object.
Result was a beautiful country with colored cities in it.
But... testing on iPhone or iPad was really slow.
So I decided another approach:
I created only one class which extends from Image.
In it, I used the graphics object to draw all cities. The result is just one image object about 2500 x 2000 pixels.
Result: almost no performance gain! Very, very slow.
I'm just using one image!
Any ideas how I can get better performance?
See what the profiler has to say. If Re: Mobile component performs very slow shows up near the top, it means you have a ton of “edges” in the display list. Make sure, if you are using vector art that you don’t have excessive edges.
I don't quite understand what you mean with 'If Re: Mobile component performs very slow shows up near the top'
I do use a lot of points to plot but only while drawing on the graphics object. Once that is done, I only have one image object sizing about 600 x 400. I've put it in a scroller.
That was the forum software corrupting messages again.
You posted an image of a memory snapshot, not a performance snapshot. If one of the top functions is “render” in square brackets then that would indicate it is the number of edges.