9 Replies Latest reply on Mar 25, 2010 5:38 AM by Fuel7

    Performance Optimization on AIR for Linux?

    Fuel7

      Hello all,

       

      I'm involved in a project where the goal is to improve the performance of an AIR/Flex Application running on an x86 Linux system.  I was hoping to get some general guidance on what the suggested method of profiling on a Linux system.

       

      We are currently using Flex Builder Pro on Windows and Mac OS X.  Do people try to install the Flex Builder plugin on a Linux Eclipse build and profile there?  Can you set up AIR on the Linux side to connect to a remote debugger/profiler running on a Windows or Mac PC? (fdb or FlexBuilder)  Do you just assume that the AIR performance characteristics on each platform is the same, and optimize on the Windows/Mac platform only?  Or is instrumenting the code and profiling with traces and trial and error the best way forward?

       

      Thanks for any help you can offer.  I'd like to start off on the right path and get this done the right way.

        • 1. Re: Performance Optimization on AIR for Linux?
          sundeep.maithani Level 3

          Hi Fuel7

           

           

          >>> Do people try to install the Flex Builder plugin on a Linux Eclipse build and profile there?

          No, profiler is not supported on Linux.

           

          >>> Can you set up AIR on the Linux side to connect to a remote debugger/profiler running on a Windows or Mac PC? (fdb or FlexBuilder)

          No, unfortunately  this is not possible.

           

          >>> Do you just assume that the AIR performance characteristics on each platform is the same, and optimize on the Windows/Mac platform only?

          Correct. Fixing performance issues (using profiler) on any platform would be more than sufficient unless the developer has written some platform specific code.

           

          Hope this helps !

           

          -Thanks

          Sundeep

          AIR Team

          • 2. Re: Performance Optimization on AIR for Linux?
            Fuel7 Level 1

            Sundeep,

             

            Thank you for the quick response.

             

            We have a client application that has been developed on mainstream 

            PCs. It runs fine. The target environment for the flex application is 

            a celeron 1ghz machine running Linux. Due largely to the lack of 

            graphics hardware acceleration on the target, we are observing frame 

            rates of less that 1fps whereas the development PCs render the app 

            perfectly above 20fps.

             

            The client that has charged the development of the flex application 

            over the past year is gated by this poor performance.  They are not 

            considering a change to either the Air platform or the target 

            hardware. These are fixed. We are considering options for them and 

            purhased the professional flex licenses in order to use the profiler. 

            We believe there may be some optimizations that can be made in the 

            flex and actionscript to improve performance of 2d and 3d transitions. 

            These are the biggest areas of poor ui performance. Is this viable? It 

            seems like the profiler just states that time is being spent 

            "rendering" and we don't know what factors contribute to slowness. If 

            we test on the mac, the performance is hardware accelerated, so we 

            cannot make a determination of what to improve!

             

            The client is very focused on a solution that does not include 

            changing the hardware platform. Fuel7 is considering the purchase of 

            developer support licenses for working with flash lite. A viable 

            solution may be to treat the celeron target as an embedded device and 

            port hardware acceleration to their Linux platform. The client is 

            aware of the substantial complexity here, so we need to:

            1. Determine if there are any other tools or techniques to improve Air 

            performance on this platform.

            2. Understand if adobe air mobile beta is a possible runtime candidate 

            and take the steps necessary for fuel7 to work with the developer team 

            to test/trial that runtime.

            3. Understand if abode flash lite is capable of running flex/air and 

            what licensing costs are associated for the client's product platform 

            and then implement the acceleration through the on board graphics 

            card. (intel gpu)

             

            Can you assist or direct us to the right support personnel/program?

             

            Thanx,

             

            - Tomas

            m 267.980.7888

             

            On Mar 16, 2010, at 9:13 AM, "sundeep.maithani" <forums@adobe.com

            • 3. Re: Performance Optimization on AIR for Linux?
              Romil Mittal Adobe Employee

              Hi Thomas,

               

              1. I seriously doubt if hardware acceleration could be the issue for such a drop in the frame rate (20 fps to 1 fps) on your target machine. Although you must have checked this, but just verifying -

                   a) I assume that there are no CPU-hogging processes running on the target machine.

                   b) How is the performance of general native applications on the target machine?

               

              2. Which version of AIR are you trying? Did you give AIR 2 Beta a shot?

               

              3. Would it be possible for you to provide us a sample AIR application (if not the actual one)  which reproduces this issue on your target machine? We will investigate  it and let you know the reason.

               

              4. There would not be any separate runtime for mobile devices. It would be the same AIR Runtime available for different desktops and mobile platforms.

               

              5. Flashlite is not capable of running AIR applications.

               

              Please clarify a few points (mentioned above) and we will take it further.

               

              -romil

              (AIR Team)

              • 4. Re: Performance Optimization on AIR for Linux?
                Fuel7 Level 1

                See below.

                 

                Thanx!

                 

                - Tomas

                m 267.980.7888

                • 5. Re: Performance Optimization on AIR for Linux?
                  sundeep.maithani Level 3

                  Hi Tomas

                  Sorry we didnt get what you meant. Did you attached a file, that didn't come through?

                   

                  -Thanks

                  Sundeep

                  • 6. Re: Performance Optimization on AIR for Linux?
                    Fuel7 Level 1

                    We're working on an isolating a transition from the main application. 

                    No attachment yet.

                     

                    In the meantime, can you address our other questions regarding a long-

                    term strategy for supporting the celeron platform?

                     

                    Thanx.

                     

                    - Tomas

                    m 267.980.7888

                     

                    On Mar 18, 2010, at 12:39 AM, "sundeep.maithani" <forums@adobe.com

                    • 7. Re: Performance Optimization on AIR for Linux?
                      Romil Mittal Adobe Employee

                      1. A lot of performance improvements have been incorporated in AIR 2. Please try the beta available on Adobe Labs.

                      2. AIR runtime does not make any distinction based on whether it is Celeron processor. Any performance issues on such a box could be becuase of some other reasons as well and so would need to be narrowed down.

                      3. As mentioned earlier, there is no separate AIR mobile version. For Linux based devices, there is ony one version of AIR Runtime available.

                       

                      Please let us know if you have any further questions.

                       

                      -romil

                      • 8. Re: Performance Optimization on AIR for Linux?
                        sundeep.maithani Level 3

                        Hi Tomas

                        We are still waiting for your inputs on this.

                        -Thanks

                        Sundeep

                        • 9. Re: Performance Optimization on AIR for Linux?
                          Fuel7 Level 1

                          Sundeep,

                           

                          Thank you for keeping tabs on this. We started looking closely at one 

                          of the 3d menus to pull it out and provide it to your team as a 

                          sample. It turns out these transitions use Papervision.  It is 

                          possible this is contribution to the poor performance on the celeron 

                          target.

                           

                          Flash 10 offers 3d acceleration, so we started investigating a port of 

                          the 3d menu effect from papervision to flash 10. The issue we now 

                          encounter is that the gpu on this celeron hardware is in the intel 915 

                          family. It is very primitive and, to our knowledge, does not support 

                          pixel shading, etc.

                           

                          Flash 10 thus soft emulates all 3d behavior on the celeron so it is 

                          not clear if this technique will be more performant than the 

                          implementation using Papervision.

                           

                          We would appreciate any input and can send you the 3d menu in flash if 

                          it performs below a tolerable threshold. It would be great to have 

                          hardware acceleration on the i915 family part. Even if part of the 

                          flash (shading) must be emulated, if we could take advantage of the 3d 

                          transforms and alpha blending, etc. the client would fund the effort.

                           

                          Again, we're very open to enrolling in the developer program if this 

                          is something that is not on adobe's roadmap and we can work with the 

                          air runtime on Linux. This hardware is already shipping and has a long 

                          term support life, so our only other alternative would be to implement 

                          the effects in native gl and work thru the complexity of integrating 

                          that into their air app with ipc.

                           

                          So you need the specific gpu model? Can you assist us in improving the 

                          flash 10 performance on the 915?

                           

                          Thanx,

                           

                          - Tomas

                          m 267.980.7888

                           

                          On Mar 25, 2010, at 12:29 AM, "sundeep.maithani" <forums@adobe.com