2 Replies Latest reply on May 28, 2012 8:48 PM by flourmilling

    ios app with Adobe Flash performances issue?

    Bychop2

      Hi.

      I buy ios enroll program today. I tried to addchild few bitmap on stage and rotate them.

      Awful. My computer can hold about 300 rotating bitmaps without lag.

       

      IPod Touch 4: less than 10 bitmaps. 10 Bitmaps are moving = 1 fps?!

       

      Are you kidding me Adobe? What is that thousand and thousand movieclip on that Ipad http://www.youtube.com/watch?feature=player_embedded&v=ZPHATCbnHE0

       

      My Main class is basic:

       

      package com.ecrevous {
        
                import flash.display.MovieClip;
                import flash.display.Sprite;
                import flash.events.Event;
                import flash.display.Bitmap;
        
        
                public class Main extends MovieClip {
                          public var bg:Sprite;
        
                          public function Main() {
                                    bg=new Sprite();
                                    this.addChild(bg);
        
                                    for(var i:uint=0;i<10;i++){
                                              var p:Bitmap = new Bitmap(new Cochon());
                                              p.x = stage.stageWidth*Math.random();
                                              p.y = stage.stageHeight*Math.random();
                                              bg.addChild(p);
                                    }
        
                                    addEventListener(Event.ENTER_FRAME, onEnter);
                          }
        
                          public function onEnter(e:Event):void{
                                              trace('number Cochons: '+bg.numChildren);
                                    for(var i:uint=0;i<bg.numChildren;i++){
                                              bg.getChildAt(i).rotation+=10;
                                    }
                          }
                }
        
      }
      
      

       

      And there is my XML

       

       

      <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
      <application xmlns="http://ns.adobe.com/air/application/3.2">
        <id>com.ecrevous.kingkidnap</id>
        <versionNumber>1.0</versionNumber>
        <filename>King Kidnap</filename>
        <description/>
        <!-- To localize the description, use the following format for the description element.<description><text xml:lang="en">English App description goes here</text><text xml:lang="fr">French App description goes here</text><text xml:lang="ja">Japanese App description goes here</text></description>-->
        <name>King Kidnap</name>
        <!-- To localize the name, use the following format for the name element.<name><text xml:lang="en">English App name goes here</text><text xml:lang="fr">French App name goes here</text><text xml:lang="ja">Japanese App name goes here</text></name>-->
        <copyright/>
        <initialWindow>
          <content>iJump.swf</content>
          <systemChrome>standard</systemChrome>
          <transparent>false</transparent>
          <visible>true</visible>
          <fullScreen>true</fullScreen>
          <renderMode>direct</renderMode>
          <autoOrients>false</autoOrients></initialWindow>
        <icon/>
        <customUpdateUI>false</customUpdateUI>
        <allowBrowserInvocation>false</allowBrowserInvocation>
        <iPhone>
          <InfoAdditions>
            <![CDATA[<key>UIDeviceFamily</key><array><string>1</string></array>]]>
          </InfoAdditions>
          <requestedDisplayResolution>high</requestedDisplayResolution>
        </iPhone>
      </application>
      
      

       

      As you can see, I'm using direct renderMode.

       

      What I am wrong?