Skip navigation
Currently Being Moderated

Mobile component performs very slow

May 9, 2013 7:42 AM

Tags: #air #flex #mobile #performance

Hello,

 

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?

 

Thx,

 

Dany

 
Replies
  • Currently Being Moderated
    May 9, 2013 9:40 AM   in reply to archemedia

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2013 8:40 AM   in reply to archemedia

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2013 10:36 AM   in reply to archemedia

    No way around it mobile devices have very weak CPU and vector graphics make those CPU suffer very quick. For what you try to do there's only one solution, Starling.

     
    |
    Mark as:
  • Currently Being Moderated
    May 12, 2013 9:09 PM   in reply to archemedia

    I think sometimes you have to click on the process in the upper left corner (just out of the image to the left and up) and then the buttons should become available.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points