CopyPixels and browser speed limits

18 Dec

Can it be true that Flash Player running in the Opera browser on Windows XP is more than 4 times faster than Safari on the Mac? It certainly looks like that and I need some help testing…

graffiti.jpg

I’m currently working on a project where I need to offset some bitmaps and I stumbled upon a very interesting speed difference among browsers. I’m shifting a bitmap along X and Y using the copyPixels function. This is apparently the fastest way to set an offset on bitmapData, but the browsers seems to have their own speed limitations? The difference between Safari on OSX and Opera on XP is downright scary…

The test file is set to play at 900 fps, so the results you are getting will be the maximum of what your browser is capable of. If you have the time write a comment with the results you are getting and I’ll add it to the table below. Make sure you specify your CPU speed and that you don’t have other software running that’ll steal CPU time (such as Spotify). Here is the test file and for those in need of an image scrolling class, here’s the AS3 class and the class to create the test as well. (The image is a neat graffiti I found just up the street from Bill’s in Brighton).

PS: I know the Flash IDE can’t be set to more than 120 fps, but in a Flex actionscript project you can set it to 999fps without any problem…

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
BrowserOSCPU speedPlayer versionFps result
FirefoxMac OS 10.5.52 x 2,8 GHz Quadcore Xeon10,0,12,3654
 Mac OS 10.5.52 x 2,8 GHz Quadcore Xeon9.0.124.055
 Mac OS 10.5.62,4 GHz Core 2 Duo10,0,12,3660
 Mac OS 10.5.52,4 GHz Core 2 Duo10,0,12,3634 (?)
 Mac OS 10.5.52.1 Ghz Core 2 Duo10,0,12,3649
SafariMac OS 10.5.52 x 2,8 GHz Quadcore Xeon10,0,12,3660
 Mac OS 10.5.52 x 2,8 GHz Quadcore Xeon9.0.124.062
 Mac OS 10.5.62,4 GHz Core 2 Duo10,0,12,3653
 Mac OS 10.5.52.1 Ghz Core 2 Duo10,0,12,3643
OperaMac OS 10.5.52 x 2,8 GHz Quadcore Xeon10,0,12,3619
 Mac OS 10.5.52 x 2,8 GHz Quadcore Xeon9.0.124.014
FirefoxWin XP2 x 2,8 GHz Quadcore Xeon10,0,12,36133
 Vista Ultimate3 Ghz Core 2 Duo10,0,12,36130
 Vista 64bit2.6 Ghz Core 2 Duo10,0,12,36136
 Win XP2.5 Ghz Quadcore Xeon10,0,12,36139
 Vista Ultimate2.4 Ghz Core 2 Duo10,0,12,36134
 Win XP2.4 Ghz Core 2 Duo10,0,12,1072
 Win XP (Parallels)2.4 Ghz Core 2 Duo10,0,12,36137
 Vista 64bit2.0 Ghz Core 2 Duo10,0,12,36136
 Win XP1.8 Ghz Core 2 Duo10.0.12.36130
ChromeVista Ultimate3 Ghz Core 2 Duo10,0,12,36120
 Vista 64bit2.6 Ghz Core 2 Duo10,0,12,3680
 Win XP2.5 Ghz Quadcore Xeon10,0,12,36115
 Win XP2.4 Ghz Core 2 Duo10,0,12,10104
 Vista 64bit2.0 Ghz Core 2 Duo10,0,12,3680
OperaWin XP2 x 2,8 GHz Quadcore Xeon10,0,12,36279 (!)
 Vista Ultimate3 Ghz Core 2 Duo10,0,12,36134
 Vista 64bit2.6 Ghz Core 2 Duo10,0,12,36166
 Win XP2.5 Ghz Quadcore Xeon10,0,12,36240
 Win XP2.4 Ghz Core 2 Duo10,0,12,10180
 Vista 64bit2.0 Ghz Core 2 Duo10,0,12,36142
SafariWin XP2.4 Ghz Core 2 Duo10,0,12,10144
IE8Win XP2.5 Ghz Quadcore Xeon10,0,12,3663
IE7Vista Ultimate3 Ghz Core 2 Duo10,0,12,3664
 Vista 64bit2.6 Ghz Core 2 Duo10,0,12,3665
 Vista 64bit2.6 Ghz Core 2 Duo10,0,12,36136
 Vista Ultimate2.4 Ghz Core 2 Duo10,0,12,3664
 Vista Ultimate2.4 Ghz Core 2 Duo9.0.115.064
 Vista 64bit2.0 Ghz Core 2 Duo10,0,12,3665
IE6Win XP2 x 2,8 GHz Quadcore Xeon10,0,12,3663
WebkitNokia N8000.33 Ghz TI OMAP 24209.0.48.08 grin
WebkitPS33.2 Ghz CELL9.0.124.065
18 December 2008 at 9:02 pm

20 Responses to CopyPixels and browser speed limits

  1. avatar photo
    0 18 December 2008 at 9:36 pm #

     

  2. avatar photo
    Anton Granik 18 December 2008 at 10:58 pm #

    Safari & Macs suck!

  3. avatar photo
    Jensa 18 December 2008 at 11:09 pm #

    Too bad I’m on a Mac and it still is a second rate citizen with Adobe. Then again - doesn’t the entire Adobe dev team use Macs? Strange…

  4. avatar photo
    gally 18 December 2008 at 11:30 pm #

     

    ...

  5. avatar photo
    George 19 December 2008 at 1:00 am #
  6. avatar photo
    George 19 December 2008 at 1:14 am #

     

  7. avatar photo
    bLaf 19 December 2008 at 1:53 am #

    FF3, Windows XP, Core 2 Duo 1.8GHz

    Flash player 10.0.12.36

  8. avatar photo
    Pablo_aSH 19 December 2008 at 3:39 am #

    2,4 GHz Intel Core 2 Duo
    FireFox 3.0.5

  9. avatar photo
    Peter K 19 December 2008 at 5:37 am #

    Quad Core Intel Xeon 2.5GHz 2GB Ram

    63 fps ie8
    139 fps firefox3
    115 fps chrome1
    240 fps opera9.62 (HOLY SH*T)
    windows XP

    away3d rules

  10. avatar photo
    Thomas 19 December 2008 at 6:06 am #

    My results

    Desktop 2,66GHz Core2duo
    All tests with Flash 10,0,12,36

    Laptop 2GHz Intel Core2duo
    All tests with Flash 10,0,12,36

    Flash 9.0.124.0

    Flash 9.0.48.0

  11. avatar photo
    Jensa 19 December 2008 at 7:09 am #

    8fps Thomas? Well, the bitmap is 800x600 pix so I think that’s pretty decent for a small device?

  12. avatar photo
    Erik Westra 19 December 2008 at 2:56 pm #

    Is there any difference between debug and non-debug player?


    Greetz Erik

  13. avatar photo
    Jensa 19 December 2008 at 4:15 pm #

    FireFox

  14. avatar photo
    Jensa 19 December 2008 at 4:22 pm #

    2 x 2.8Ghz Quadcore Xeon

     

  15. avatar photo
    Jensa 19 December 2008 at 4:32 pm #

    2 x 2.8 quadcore

  16. avatar photo
    jensa 19 December 2008 at 4:46 pm #

    2 x 2.8 Ghz quadcore

     

  17. avatar photo
    Exey 19 December 2008 at 8:35 pm #

    AMD Athlon 64 X2 Dual Core Processor 5200+ 2.71Ghz

     

  18. avatar photo
    Exey 19 December 2008 at 8:49 pm #

    AMD Athlon 64 X2 Dual Core Processor 5200+ 2.71Ghz


    o_O Why in 9.26 Faster x2 ?

  19. avatar photo
    Thomas 22 December 2008 at 1:43 am #

    Dell Mini9
    1.6GHz N270 Intel Atom
    Ubuntu Linux 8.10, 
    Flash 10,0,15,3

  20. avatar photo
    Chris 14 May 2009 at 5:20 pm #
  21.