7 Replies Latest reply on May 12, 2013 9:09 PM by Flex harUI

    Mobile component performs very slow

    archemedia Level 4

      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