A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Flash 9 Performance

  1. #1
    Member
    Join Date
    Oct 2000
    Location
    Lansing, Michigan
    Posts
    79

    Flash 9 Performance

    I'm not sure if anyone else has been playing around with the new Flash 9 Public Alpha, but I've been messing with it a bit. I was hoping to see the performance increases I have been reading about so I built a test. I found that I wasn't getting any better results over version 8. I'm curious if anyone has done anything similar and what results they have found.

    Here is my experiment.

  2. #2
    Actionscript 3, postproduction georgecalgary's Avatar
    Join Date
    Jun 2005
    Location
    Toronto
    Posts
    229
    It's not a deal to think about performance now. After next year you have to use ActionScript 3 but no longer ActionScript 1/2.

    1. Flash w/ AS3 can not be loaded by Flash w/ AS1/2.
    2. Flash w/ AS1/2 can be loaded by Flash w/ AS3, but they can no longer interact each other directly.

  3. #3
    Member
    Join Date
    Oct 2000
    Location
    Lansing, Michigan
    Posts
    79
    Sure, but some of the applications I've built can be very processor heavy and I want the whole thing to be able to push more objects on the screen. I'm working on apps for myself and don't mind being ahead of the adoption curve.

  4. #4
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    After next year you have to use ActionScript 3 but no longer ActionScript 1/2.
    You will still be able to use both with the Flash 9 IDE, but of course independent from each other. mixing is not possible.
    - The right of the People to create Flash movies shall not be infringed. -

  5. #5
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    I tested your two files in a browser, not just test movie but create html files. I think that the Flash 8 movie starts later than the flash 9 movie. I could be wrong of course.
    - The right of the People to create Flash movies shall not be infringed. -

  6. #6
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881
    The problem here, is rendering speed, not actionscript execution speed. Performance has been increased 10 fold or more for actionscript execution. Rendering performance a little, but not much.

  7. #7
    imagination through stupidity
    Join Date
    Apr 2001
    Location
    P3X-3113
    Posts
    1,238
    I have noticed speed improvements in flash8 content tho on the mac. It may be an illusion, but it appeared to me that the flash8 version was rendering to the screen faster. FlashGuru is right, the actionscript execution speed benefits the most from the new VM not screen rendering.

    I changed main.as to use while statements.
    PHP Code:
    package com.nocircleno.squares {
        
        
    import com.nocircleno.squares.Square;
        
    import flash.display.MovieClip;
        
        public class 
    Main extends MovieClip {
            
            function 
    Main() {
                
                var 
    numberBlocks:int Math.round(stage.stageWidth/20);
                var 
    currentRowPos:uint 0;
                var 
    row:uint=0;
                while(
    row<numberBlocks) {
                    
    currentRowPos row 20;
                    var 
    column:uint=0;
                    while(
    column<numberBlocks) {
                        var 
    mySquare:MovieClip = new Square();
                        
    mySquare.column*20;
                        
    mySquare.currentRowPos;
                        
    this.addChild(mySquare);
                        
    column++;
                    }
                    
    row++;
                }
            }
        }

    Last edited by Sybersnake; 07-01-2006 at 04:30 PM.
    Nothing to see here, move along.

  8. #8
    Member
    Join Date
    Oct 2000
    Location
    Lansing, Michigan
    Posts
    79
    This seems like a bummer, but I'm sure the more I develop with it the performance increases will make themselves apparent. It sounded like the next version of the player may final use hardware acceleration so we can get some crazy screen performance. Back to the playground. Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center