7 Replies Latest reply on Apr 3, 2011 11:20 PM by NotifyWire

    AIR performance issues

    Frego

      Hi

       

      I'm new to air, and started developing an offline version of canvasrider.com

      Now that I have the all of the files working almost, there are two problems.

       

      1. Lag

      Canvas rider doesn't lag in any browser, but now that it is in the AIR format, it has begun to lag.

      It isn't bad, but still a nuisance

       

      2. Scroll wheel doesn't work

      It might be coded weirdly into the game, but the scroll wheel makes brush sizes different and zooms in and out.

      Now that the scrolling doesn't work, none of these can be done.

       

      The link to my canvas rider offline editor, CROE:

      http://juuso.kivinen.org

        • 1. Re: AIR performance issues
          chris.campbell Adobe Employee

          Hi,

          Thanks for showing interest in AIR!  I'm digging Canvas Rider a lot.

           

          Do you have any sample code that would illustrate the problem and allow us to compare and contrast between Flash Player and AIR?  Or is your browser code in javascript/HTML 5?

           

          As for scroll wheel, please take a look at MouseEvent.MOUSE_WHEEL though there is currently a Jira bug against Microsoft Mouse wheels not responding.

           

          Chris

          • 2. Re: AIR performance issues
            Frego Level 1

            I sent you the source via PM.

            Thanks for all the help in advance.

             

            Oh and no scroll problem anymore, it was my fault for editing the code.

            • 3. Re: AIR performance issues
              Catalin Anastasoaie Adobe Employee

              Hi,

               

              Sorry for the late response Frego but we have been caught up with some work around the next version of AIR.

               

              I've played yesterday with Canvas Rider (one of the popular tracks http://canvasrider.com/tracks/popular) on Mac OS and Windows XP and indeed it is moving slower than in the browser. But testing it across different versions of AIR I haven't seen a significant increase or decrease in speed and I am curios why you are saying that the performance became slower.

               

              On which version of AIR did this perform better?

               

              In the meanwhile i saw that the *.zip file (the one from your webserver) containing a sample app isn't accessible anymore. Could you re-upload it so that i could use it?

               

              Regards,

              -Catalin

              • 4. Re: AIR performance issues
                Frego Level 1

                No difference in the AIR versions, both lag as much.

                I guess it mostly lags when you lean back and fall.

                 

                It's currently compiled with the latest version of AIR(2.5 right?) and I'd say that it made the lag just a tiny bit better.

                I think it was compiled with 1.5 for the first times, or what ever comes stock with aptana studio 2.

                 

                Also, heres the .zip for the source http://www.mediafire.com/?j56l4gvfwelx8wb

                • 5. Re: AIR performance issues
                  NotifyWire

                  The JIRA bug report seems to indicate that this was logged as a problem with flash/flex, but I have the same problem in my WebKit based app.  I hope this gets fixed across the board.

                  • 6. Re: AIR performance issues
                    Catalin Anastasoaie Adobe Employee

                    Hi,

                     

                    Is there a chance you could send us a small sample app that could reproduce the issue you're encountering with your WebKit based app? Also can you tell us how big is the degradation (1x, 2x, 3x) and what is the AIR version that you're using as reference?

                     

                    We've tried to reproduce the issue in an AIR application but didn't found any major differences or degradations in the overall performance levels.

                     

                    Thanks,

                    --Catalin

                    • 7. Re: AIR performance issues
                      NotifyWire Level 1

                      I should have been more clear.  I was specifically refering to the bug about the scroll wheel issue with a microsoft mouse.  If you like, you can see the problem in my NotifyWire app (NotifyWire.com).  It's simply one div inside a smaller div with overflow-y set to auto.  Again, this is only with a microsoft mouse and it will scroll a little, if you scroll the wheel really hard and fast, but it's completely unusable. 

                       

                      Here's a quick HTML snippet to repro the problem in ANY test app you have lying around:

                       

                      <div style="width:250px; height:300px; overflow-y:auto;">

                      <div>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      aksdjflkasjdflasjflkjaslfd<br/>

                      </div>

                      </div>