1 Reply Latest reply: Mar 7, 2012 5:36 AM by he11f1re RSS

    Lag When Programming For iOS Device With Adobe Flash Professional.

    imthebestcool

      Hi, I'm trying to make an Application for iOS device, Everything is find, but when i installed it on my iphone 4 and my iPhone 4S my game start lagging, i don't what to do, i tried to simplifed the code but nothing is working i dont know if it's in the rendering or when i'm trying to export, but on my iPhone it's lagging.

       

      Any Help Please, Solution ?

       

      Thanks

       

      Francis

        • 1. Re: Lag When Programming For iOS Device With Adobe Flash Professional.
          he11f1re Community Member

          Target gpu on the device you're testing .. you'll get much better results.

          You can do it on the xml configuration file on <renderMode> or if you're publishing in flash on the settings of renderMode select GPU.

          Also get rid as much as you can from vector graphics and use bitmaps instead.

          You can use Adobe's method of converting a vector in bitmap like this : myMC.cacheAsBitmap = true;

          And also if you're moving an object, scaling or changing it's transparency use myMC.cacheAsBitmapMatrix = new Matrix();

          These are some basic optimization tips.