Re: [Flashcoders] AS3 faster ??
I did an l-system implementation in AS2 recently. In FP8 i could only do simple systems with a couple of recursions before the player choked, and playback was slow as well (i animated the growth with perlin noise for a wind effect). Porting to AS3 let me quadruple the l-system complexity, still get instantaneous results and far, far better playback speed. Not hard numbers, i know, but pretty mindblowing for me to watch as a developer. AS3 doesn't wrap AS2, this is important to remember. AS2 was pretty much AS1 with knobs on, AS3 is a new language to learn (albeit not a tough one to learn if you're used to AS2). - Andreas neo binedell wrote: Of course it will be faster only if you port the code over to AS3 (otherwise it will still use the old AS2/1 VM1). I posted about the 3D engine I wrote and the speed increase I got when I converted it to AS3 a few days ago so you can check that out as an example of just how much faster it is ;p ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: 06 July 2006 05:47 PM To: Flashcoders mailing list Subject: [Flashcoders] AS3 faster ?? Hi people, they say that AS3 is 10 times faster than AS2 but what does that really means ? Does that mean that my movies will play faster even if I have a few dozens movieclips with graphics flying all over the screen? Or does it just mean that my .swf will be compiling 10 times faster? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- - Andreas Rønning --- Flash guy Rayon Visual Concepts, Oslo, Norway --- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 faster ??
- Has anyone seen any comparisons with the Shockwave player? I'd love to know if AS3 can out-perform Lingo. Thanks, Mike Nick Weekes wrote: Andreas, you got any links to your benchmarking? Id be interested to see them (Im not planning on migrating to AS3 just yet). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: 10 July 2006 14:59 To: Flashcoders mailing list Subject: Re: [Flashcoders] AS3 faster ?? I did an l-system implementation in AS2 recently. In FP8 i could only do simple systems with a couple of recursions before the player choked, and playback was slow as well (i animated the growth with perlin noise for a wind effect). Porting to AS3 let me quadruple the l-system complexity, still get instantaneous results and far, far better playback speed. Not hard numbers, i know, but pretty mindblowing for me to watch as a developer. AS3 doesn't wrap AS2, this is important to remember. AS2 was pretty much AS1 with knobs on, AS3 is a new language to learn (albeit not a tough one to learn if you're used to AS2). - Andreas neo binedell wrote: Of course it will be faster only if you port the code over to AS3 (otherwise it will still use the old AS2/1 VM1). I posted about the 3D engine I wrote and the speed increase I got when I converted it to AS3 a few days ago so you can check that out as an example of just how much faster it is ;p ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: 06 July 2006 05:47 PM To: Flashcoders mailing list Subject: [Flashcoders] AS3 faster ?? Hi people, they say that AS3 is 10 times faster than AS2 but what does that really means ? Does that mean that my movies will play faster even if I have a few dozens movieclips with graphics flying all over the screen? Or does it just mean that my .swf will be compiling 10 times faster? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- - Mike Cobb Creative Director HMC Interactive - Tel: + 44 (0)845 20 11 462 Mob: + 44 (0)785 52 54 743 Web: http://www.hmcinteractive.co.uk - Grosvenor House, Belgrave Lane, Plymouth, PL4 7DA, UK. - ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 faster ??
hey andreas you say AS3 isn't a difficult language to learn for as2'ers, is there any comprehensive books or courses out yet I could dive into? On 10/07/06, Andreas Rønning [EMAIL PROTECTED] wrote: Hardly benchmarks, but you can get a quick comparison in flashplayer 9: http://andreas.rayon.no/AS2.swf Press the 3-key on your keyboard to load the most complex system, observe the BREAKNECK SPEED at which Flash player 8 handles it. http://andreas.rayon.no/AS3.swf I rest my case :) - Andreas Nick Weekes wrote: Andreas, you got any links to your benchmarking? Id be interested to see them (Im not planning on migrating to AS3 just yet). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: 10 July 2006 14:59 To: Flashcoders mailing list Subject: Re: [Flashcoders] AS3 faster ?? I did an l-system implementation in AS2 recently. In FP8 i could only do simple systems with a couple of recursions before the player choked, and playback was slow as well (i animated the growth with perlin noise for a wind effect). Porting to AS3 let me quadruple the l-system complexity, still get instantaneous results and far, far better playback speed. Not hard numbers, i know, but pretty mindblowing for me to watch as a developer. AS3 doesn't wrap AS2, this is important to remember. AS2 was pretty much AS1 with knobs on, AS3 is a new language to learn (albeit not a tough one to learn if you're used to AS2). - Andreas neo binedell wrote: Of course it will be faster only if you port the code over to AS3 (otherwise it will still use the old AS2/1 VM1). I posted about the 3D engine I wrote and the speed increase I got when I converted it to AS3 a few days ago so you can check that out as an example of just how much faster it is ;p ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: 06 July 2006 05:47 PM To: Flashcoders mailing list Subject: [Flashcoders] AS3 faster ?? Hi people, they say that AS3 is 10 times faster than AS2 but what does that really means ? Does that mean that my movies will play faster even if I have a few dozens movieclips with graphics flying all over the screen? Or does it just mean that my .swf will be compiling 10 times faster? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- - Andreas Rønning --- Flash guy Rayon Visual Concepts, Oslo, Norway --- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 faster ??
Hi, Here some benchs I've made during the Beta 2, comparison between AS2's and AS3's basics operations. All have been mades on 10 iterations. AS2: addition (5+12) : 370 ms subtract (5-12) : 365 ms multiply (5x12) : 351 ms divide (5/12) : 375 ms concat : 471 ms round (16.87956) : 346 ms square (2) : 395 ms creating objects with {x:50,y:100} : 1560 ms creating objects with new : 1734 ms creating arrays with [50,60,70] : 1834 ms creating arrays with new : 2127 ms AS3 : addition (5+12) : 4 ms subtract (5-12) : 6 ms multiply (5x12) : 6 ms divide (5/12) : 7 ms concat : 63 ms concat with StringBuilder : 12 ms round (16.87956) : 25 ms square (2) : 24 ms creating objects with {x:50,y:100} : 89 ms creating objects with new : 70 ms creating arrays with [50,60,70] : 90 ms creating arrays with new : 300 ms Something cool is that the new keyword is much faster on AS3 when creating objects, whereas it's the inverse in AS3. Cédric Andreas Rønning wrote: Hardly benchmarks, but you can get a quick comparison in flashplayer 9: http://andreas.rayon.no/AS2.swf Press the 3-key on your keyboard to load the most complex system, observe the BREAKNECK SPEED at which Flash player 8 handles it. http://andreas.rayon.no/AS3.swf I rest my case :) - Andreas Nick Weekes wrote: Andreas, you got any links to your benchmarking? Id be interested to see them (Im not planning on migrating to AS3 just yet). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: 10 July 2006 14:59 To: Flashcoders mailing list Subject: Re: [Flashcoders] AS3 faster ?? I did an l-system implementation in AS2 recently. In FP8 i could only do simple systems with a couple of recursions before the player choked, and playback was slow as well (i animated the growth with perlin noise for a wind effect). Porting to AS3 let me quadruple the l-system complexity, still get instantaneous results and far, far better playback speed. Not hard numbers, i know, but pretty mindblowing for me to watch as a developer. AS3 doesn't wrap AS2, this is important to remember. AS2 was pretty much AS1 with knobs on, AS3 is a new language to learn (albeit not a tough one to learn if you're used to AS2). - Andreas neo binedell wrote: Of course it will be faster only if you port the code over to AS3 (otherwise it will still use the old AS2/1 VM1). I posted about the 3D engine I wrote and the speed increase I got when I converted it to AS3 a few days ago so you can check that out as an example of just how much faster it is ;p ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: 06 July 2006 05:47 PM To: Flashcoders mailing list Subject: [Flashcoders] AS3 faster ?? Hi people, they say that AS3 is 10 times faster than AS2 but what does that really means ? Does that mean that my movies will play faster even if I have a few dozens movieclips with graphics flying all over the screen? Or does it just mean that my .swf will be compiling 10 times faster? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 faster ??
ActionScript 3.0 overview http://www.adobe.com/devnet/actionscript/articles/actionscript3_overview.html Programming ActionScript 3.0 http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part5_ProgAS.html ActionScript 3.0 Language Reference http://livedocs.macromedia.com/flex/2/langref/index.html I've found these to be great references, and I believe they're really the only ones available. Colin Moock is writing an AS3 reference as well, though I don't know when it's scheduled to come out. Tyler On 7/10/06, Tom Jackson [EMAIL PROTECTED] wrote: hey andreas you say AS3 isn't a difficult language to learn for as2'ers, is there any comprehensive books or courses out yet I could dive into? On 10/07/06, Andreas Rønning [EMAIL PROTECTED] wrote: Hardly benchmarks, but you can get a quick comparison in flashplayer 9: http://andreas.rayon.no/AS2.swf Press the 3-key on your keyboard to load the most complex system, observe the BREAKNECK SPEED at which Flash player 8 handles it. http://andreas.rayon.no/AS3.swf I rest my case :) - Andreas Nick Weekes wrote: Andreas, you got any links to your benchmarking? Id be interested to see them (Im not planning on migrating to AS3 just yet). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: 10 July 2006 14:59 To: Flashcoders mailing list Subject: Re: [Flashcoders] AS3 faster ?? I did an l-system implementation in AS2 recently. In FP8 i could only do simple systems with a couple of recursions before the player choked, and playback was slow as well (i animated the growth with perlin noise for a wind effect). Porting to AS3 let me quadruple the l-system complexity, still get instantaneous results and far, far better playback speed. Not hard numbers, i know, but pretty mindblowing for me to watch as a developer. AS3 doesn't wrap AS2, this is important to remember. AS2 was pretty much AS1 with knobs on, AS3 is a new language to learn (albeit not a tough one to learn if you're used to AS2). - Andreas neo binedell wrote: Of course it will be faster only if you port the code over to AS3 (otherwise it will still use the old AS2/1 VM1). I posted about the 3D engine I wrote and the speed increase I got when I converted it to AS3 a few days ago so you can check that out as an example of just how much faster it is ;p ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: 06 July 2006 05:47 PM To: Flashcoders mailing list Subject: [Flashcoders] AS3 faster ?? Hi people, they say that AS3 is 10 times faster than AS2 but what does that really means ? Does that mean that my movies will play faster even if I have a few dozens movieclips with graphics flying all over the screen? Or does it just mean that my .swf will be compiling 10 times faster? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- - Andreas Rønning --- Flash guy Rayon Visual Concepts, Oslo, Norway --- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 faster ??
I tried running these tests in Director for comparison. All tests took more-or-less the following form: on speedTest ms = the milliseconds repeat with i = 1 to 10 a = 5 + 12 end repeat t = the milliseconds - ms end My machine specs: - 1.33 GHz G4 Powerbook with 768MB RAM - OSX 10.3.9 - Director MX 2004 The results: Lingo: addition (5+12) : 90 ms subtract (5-12) : 90 ms multiply (5x12) : 90 ms divide (5/12) : 95 ms concat : did not run round (16.87956) : 158 ms ...using integer(16.87956) square (2) : 202 ms ...using power(2, 2) creating objects with {x:50,y:100} : 425 ms ...using [#x:50,#y:100] creating objects with new : did not run creating arrays with [50,60,70] : 410 ms creating arrays with new : did not run If we're more or less comparing apples to apples here, it would seem that AS3 is looking mighty quick under the hood... r o b | Robert Gordon | The Article 19 Group Inc. | phone: 514.938.8512 | email: [EMAIL PROTECTED] | http://www.article19.com From: Cédric Néhémie [EMAIL PROTECTED] Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Date: Mon, 10 Jul 2006 17:14:14 +0200 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS3 faster ?? Hi, Here some benchs I've made during the Beta 2, comparison between AS2's and AS3's basics operations. All have been mades on 10 iterations. AS2: addition (5+12) : 370 ms subtract (5-12) : 365 ms multiply (5x12) : 351 ms divide (5/12) : 375 ms concat : 471 ms round (16.87956) : 346 ms square (2) : 395 ms creating objects with {x:50,y:100} : 1560 ms creating objects with new : 1734 ms creating arrays with [50,60,70] : 1834 ms creating arrays with new : 2127 ms AS3 : addition (5+12) : 4 ms subtract (5-12) : 6 ms multiply (5x12) : 6 ms divide (5/12) : 7 ms concat : 63 ms concat with StringBuilder : 12 ms round (16.87956) : 25 ms square (2) : 24 ms creating objects with {x:50,y:100} : 89 ms creating objects with new : 70 ms creating arrays with [50,60,70] : 90 ms creating arrays with new : 300 ms Something cool is that the new keyword is much faster on AS3 when creating objects, whereas it's the inverse in AS3. Cédric Andreas Rønning wrote: Hardly benchmarks, but you can get a quick comparison in flashplayer 9: http://andreas.rayon.no/AS2.swf Press the 3-key on your keyboard to load the most complex system, observe the BREAKNECK SPEED at which Flash player 8 handles it. http://andreas.rayon.no/AS3.swf I rest my case :) - Andreas Nick Weekes wrote: Andreas, you got any links to your benchmarking? Id be interested to see them (Im not planning on migrating to AS3 just yet). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: 10 July 2006 14:59 To: Flashcoders mailing list Subject: Re: [Flashcoders] AS3 faster ?? I did an l-system implementation in AS2 recently. In FP8 i could only do simple systems with a couple of recursions before the player choked, and playback was slow as well (i animated the growth with perlin noise for a wind effect). Porting to AS3 let me quadruple the l-system complexity, still get instantaneous results and far, far better playback speed. Not hard numbers, i know, but pretty mindblowing for me to watch as a developer. AS3 doesn't wrap AS2, this is important to remember. AS2 was pretty much AS1 with knobs on, AS3 is a new language to learn (albeit not a tough one to learn if you're used to AS2). - Andreas neo binedell wrote: Of course it will be faster only if you port the code over to AS3 (otherwise it will still use the old AS2/1 VM1). I posted about the 3D engine I wrote and the speed increase I got when I converted it to AS3 a few days ago so you can check that out as an example of just how much faster it is ;p ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: 06 July 2006 05:47 PM To: Flashcoders mailing list Subject: [Flashcoders] AS3 faster ?? Hi people, they say that AS3 is 10 times faster than AS2 but what does that really means ? Does that mean that my movies will play faster even if I have a few dozens movieclips with graphics flying all over the screen? Or does it just mean that my .swf will be compiling 10 times faster? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http
Re: [Flashcoders] AS3 faster ??
What data types did you use?? int or Number? Charles P. On 7/10/06, Cédric Néhémie [EMAIL PROTECTED] wrote: Hi, Here some benchs I've made during the Beta 2, comparison between AS2's and AS3's basics operations. All have been mades on 10 iterations. AS2: addition (5+12) : 370 ms subtract (5-12) : 365 ms multiply (5x12) : 351 ms divide (5/12) : 375 ms concat : 471 ms round (16.87956) : 346 ms square (2) : 395 ms creating objects with {x:50,y:100} : 1560 ms creating objects with new : 1734 ms creating arrays with [50,60,70] : 1834 ms creating arrays with new : 2127 ms AS3 : addition (5+12) : 4 ms subtract (5-12) : 6 ms multiply (5x12) : 6 ms divide (5/12) : 7 ms concat : 63 ms concat with StringBuilder : 12 ms round (16.87956) : 25 ms square (2) : 24 ms creating objects with {x:50,y:100} : 89 ms creating objects with new : 70 ms creating arrays with [50,60,70] : 90 ms creating arrays with new : 300 ms Something cool is that the new keyword is much faster on AS3 when creating objects, whereas it's the inverse in AS3. Cédric Andreas Rønning wrote: Hardly benchmarks, but you can get a quick comparison in flashplayer 9: http://andreas.rayon.no/AS2.swf Press the 3-key on your keyboard to load the most complex system, observe the BREAKNECK SPEED at which Flash player 8 handles it. http://andreas.rayon.no/AS3.swf I rest my case :) - Andreas Nick Weekes wrote: Andreas, you got any links to your benchmarking? Id be interested to see them (Im not planning on migrating to AS3 just yet). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: 10 July 2006 14:59 To: Flashcoders mailing list Subject: Re: [Flashcoders] AS3 faster ?? I did an l-system implementation in AS2 recently. In FP8 i could only do simple systems with a couple of recursions before the player choked, and playback was slow as well (i animated the growth with perlin noise for a wind effect). Porting to AS3 let me quadruple the l-system complexity, still get instantaneous results and far, far better playback speed. Not hard numbers, i know, but pretty mindblowing for me to watch as a developer. AS3 doesn't wrap AS2, this is important to remember. AS2 was pretty much AS1 with knobs on, AS3 is a new language to learn (albeit not a tough one to learn if you're used to AS2). - Andreas neo binedell wrote: Of course it will be faster only if you port the code over to AS3 (otherwise it will still use the old AS2/1 VM1). I posted about the 3D engine I wrote and the speed increase I got when I converted it to AS3 a few days ago so you can check that out as an example of just how much faster it is ;p ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: 06 July 2006 05:47 PM To: Flashcoders mailing list Subject: [Flashcoders] AS3 faster ?? Hi people, they say that AS3 is 10 times faster than AS2 but what does that really means ? Does that mean that my movies will play faster even if I have a few dozens movieclips with graphics flying all over the screen? Or does it just mean that my .swf will be compiling 10 times faster? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 faster ??
Could you supply the code you tested with please. Charles P. On 7/10/06, Cédric Néhémie [EMAIL PROTECTED] wrote: Hi, Here some benchs I've made during the Beta 2, comparison between AS2's and AS3's basics operations. All have been mades on 10 iterations. AS2: addition (5+12) : 370 ms subtract (5-12) : 365 ms multiply (5x12) : 351 ms divide (5/12) : 375 ms concat : 471 ms round (16.87956) : 346 ms square (2) : 395 ms creating objects with {x:50,y:100} : 1560 ms creating objects with new : 1734 ms creating arrays with [50,60,70] : 1834 ms creating arrays with new : 2127 ms AS3 : addition (5+12) : 4 ms subtract (5-12) : 6 ms multiply (5x12) : 6 ms divide (5/12) : 7 ms concat : 63 ms concat with StringBuilder : 12 ms round (16.87956) : 25 ms square (2) : 24 ms creating objects with {x:50,y:100} : 89 ms creating objects with new : 70 ms creating arrays with [50,60,70] : 90 ms creating arrays with new : 300 ms Something cool is that the new keyword is much faster on AS3 when creating objects, whereas it's the inverse in AS3. Cédric Andreas Rønning wrote: Hardly benchmarks, but you can get a quick comparison in flashplayer 9: http://andreas.rayon.no/AS2.swf Press the 3-key on your keyboard to load the most complex system, observe the BREAKNECK SPEED at which Flash player 8 handles it. http://andreas.rayon.no/AS3.swf I rest my case :) - Andreas Nick Weekes wrote: Andreas, you got any links to your benchmarking? Id be interested to see them (Im not planning on migrating to AS3 just yet). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: 10 July 2006 14:59 To: Flashcoders mailing list Subject: Re: [Flashcoders] AS3 faster ?? I did an l-system implementation in AS2 recently. In FP8 i could only do simple systems with a couple of recursions before the player choked, and playback was slow as well (i animated the growth with perlin noise for a wind effect). Porting to AS3 let me quadruple the l-system complexity, still get instantaneous results and far, far better playback speed. Not hard numbers, i know, but pretty mindblowing for me to watch as a developer. AS3 doesn't wrap AS2, this is important to remember. AS2 was pretty much AS1 with knobs on, AS3 is a new language to learn (albeit not a tough one to learn if you're used to AS2). - Andreas neo binedell wrote: Of course it will be faster only if you port the code over to AS3 (otherwise it will still use the old AS2/1 VM1). I posted about the 3D engine I wrote and the speed increase I got when I converted it to AS3 a few days ago so you can check that out as an example of just how much faster it is ;p ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: 06 July 2006 05:47 PM To: Flashcoders mailing list Subject: [Flashcoders] AS3 faster ?? Hi people, they say that AS3 is 10 times faster than AS2 but what does that really means ? Does that mean that my movies will play faster even if I have a few dozens movieclips with graphics flying all over the screen? Or does it just mean that my .swf will be compiling 10 times faster? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 faster ??
++) { b = (searchPattern.exec(originalString) != null); } trace(RegExp.exec : +(getTimer()-t)+ ms); t = getTimer(); for(var i:uint=0;iiteration;i++) { b = searchPattern.test(originalString); } trace(RegExp.test : +(getTimer()-t)+ ms); } And the results : String.search avec une RegExp : 560 ms String.match avec une String : 886 ms String.match avec une RegExp : 562 ms String.indexOf : 9 ms String.lastIndexOf : 11 ms RegExp.exec : 581 ms RegExp.test : 574 ms Charles Parcell wrote: Could you supply the code you tested with please. Charles P. On 7/10/06, Cédric Néhémie [EMAIL PROTECTED] wrote: Hi, Here some benchs I've made during the Beta 2, comparison between AS2's and AS3's basics operations. All have been mades on 10 iterations. AS2: addition (5+12) : 370 ms subtract (5-12) : 365 ms multiply (5x12) : 351 ms divide (5/12) : 375 ms concat : 471 ms round (16.87956) : 346 ms square (2) : 395 ms creating objects with {x:50,y:100} : 1560 ms creating objects with new : 1734 ms creating arrays with [50,60,70] : 1834 ms creating arrays with new : 2127 ms AS3 : addition (5+12) : 4 ms subtract (5-12) : 6 ms multiply (5x12) : 6 ms divide (5/12) : 7 ms concat : 63 ms concat with StringBuilder : 12 ms round (16.87956) : 25 ms square (2) : 24 ms creating objects with {x:50,y:100} : 89 ms creating objects with new : 70 ms creating arrays with [50,60,70] : 90 ms creating arrays with new : 300 ms Something cool is that the new keyword is much faster on AS3 when creating objects, whereas it's the inverse in AS3. Cédric Andreas Rønning wrote: Hardly benchmarks, but you can get a quick comparison in flashplayer 9: http://andreas.rayon.no/AS2.swf Press the 3-key on your keyboard to load the most complex system, observe the BREAKNECK SPEED at which Flash player 8 handles it. http://andreas.rayon.no/AS3.swf I rest my case :) - Andreas Nick Weekes wrote: Andreas, you got any links to your benchmarking? Id be interested to see them (Im not planning on migrating to AS3 just yet). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: 10 July 2006 14:59 To: Flashcoders mailing list Subject: Re: [Flashcoders] AS3 faster ?? I did an l-system implementation in AS2 recently. In FP8 i could only do simple systems with a couple of recursions before the player choked, and playback was slow as well (i animated the growth with perlin noise for a wind effect). Porting to AS3 let me quadruple the l-system complexity, still get instantaneous results and far, far better playback speed. Not hard numbers, i know, but pretty mindblowing for me to watch as a developer. AS3 doesn't wrap AS2, this is important to remember. AS2 was pretty much AS1 with knobs on, AS3 is a new language to learn (albeit not a tough one to learn if you're used to AS2). - Andreas neo binedell wrote: Of course it will be faster only if you port the code over to AS3 (otherwise it will still use the old AS2/1 VM1). I posted about the 3D engine I wrote and the speed increase I got when I converted it to AS3 a few days ago so you can check that out as an example of just how much faster it is ;p ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: 06 July 2006 05:47 PM To: Flashcoders mailing list Subject: [Flashcoders] AS3 faster ?? Hi people, they say that AS3 is 10 times faster than AS2 but what does that really means ? Does that mean that my movies will play faster even if I have a few dozens movieclips with graphics flying all over the screen? Or does it just mean that my .swf will be compiling 10 times faster? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 faster ??
but the faster part should be F9 Player itself, insn´t it ? - Original Message - From: ben farrell [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, July 06, 2006 1:47 PM Subject: Re: [Flashcoders] AS3 faster ?? At my local Adobe user group, we had a Flex 2 demo which of course utilizes the Flash 9 Player and AS3. The presenter had some code that draws fractals on screen. Using Flash 8 AS2, the fractal took around 45 seconds to render. Then he ran the same thing in Flash 9 AS3, and it rendered instantaneously. So it was pretty damn impressive in my book. I can't say that I've run into any daily problems where things don't compile fast enough, so I guess I dont know or really care bout that! ben Patrick Matte wrote: Hi people, they say that AS3 is 10 times faster than AS2 but what does that really means ? Does that mean that my movies will play faster even if I have a few dozens movieclips with graphics flying all over the screen? Or does it just mean that my .swf will be compiling 10 times faster? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 faster ??
there are two VM's in the new player. the new VM is real snell. On 7/7/06, jcarlos [EMAIL PROTECTED] wrote: but the faster part should be F9 Player itself, insn´t it ? - Original Message - From: ben farrell [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, July 06, 2006 1:47 PM Subject: Re: [Flashcoders] AS3 faster ?? At my local Adobe user group, we had a Flex 2 demo which of course utilizes the Flash 9 Player and AS3. The presenter had some code that draws fractals on screen. Using Flash 8 AS2, the fractal took around 45 seconds to render. Then he ran the same thing in Flash 9 AS3, and it rendered instantaneously. So it was pretty damn impressive in my book. I can't say that I've run into any daily problems where things don't compile fast enough, so I guess I dont know or really care bout that! ben Patrick Matte wrote: Hi people, they say that AS3 is 10 times faster than AS2 but what does that really means ? Does that mean that my movies will play faster even if I have a few dozens movieclips with graphics flying all over the screen? Or does it just mean that my .swf will be compiling 10 times faster? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- j:pn http://www.lennel.org ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] AS3 faster ??
but the faster part should be F9 Player itself, insn´t it ? F9 player includes VM1 and VM2. VM2 is the one with the performance improvements. To use VM2, the SWF must be published for Flash Player 9 (presumably AS3?). Peter This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 faster ??
yes for as3 as well. no as2 in vm2. On 7/7/06, Blumenthal, Peter [EMAIL PROTECTED] wrote: but the faster part should be F9 Player itself, insn´t it ? F9 player includes VM1 and VM2. VM2 is the one with the performance improvements. To use VM2, the SWF must be published for Flash Player 9 (presumably AS3?). Peter This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- j:pn http://www.lennel.org ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 faster ??
wonder what happens if you load a SWF published with as2.0 into a SWF publishes in as3.0, does it have to switch VMs? On 7/7/06, Johannes Nel [EMAIL PROTECTED] wrote: yes for as3 as well. no as2 in vm2. On 7/7/06, Blumenthal, Peter [EMAIL PROTECTED] wrote: but the faster part should be F9 Player itself, insn´t it ? F9 player includes VM1 and VM2. VM2 is the one with the performance improvements. To use VM2, the SWF must be published for Flash Player 9 (presumably AS3?). Peter This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- j:pn http://www.lennel.org ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 faster ??
the code does not execute if the parent movie is aimed at avm2. On 7/7/06, Meinte van't Kruis [EMAIL PROTECTED] wrote: wonder what happens if you load a SWF published with as2.0 into a SWF publishes in as3.0, does it have to switch VMs? On 7/7/06, Johannes Nel [EMAIL PROTECTED] wrote: yes for as3 as well. no as2 in vm2. On 7/7/06, Blumenthal, Peter [EMAIL PROTECTED] wrote: but the faster part should be F9 Player itself, insn´t it ? F9 player includes VM1 and VM2. VM2 is the one with the performance improvements. To use VM2, the SWF must be published for Flash Player 9 (presumably AS3?). Peter This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- j:pn http://www.lennel.org ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- j:pn http://www.lennel.org ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 faster ??
Yes, a SWF8 loaded into a SWF9 does play. However, there are quite a number of limitations. For instance, you can't reference _level0, or any _level. Tracing out trace(this) in the SWF8 displays _root. So each SWF8 assumes it is _root. But they are not loaded into different _levels. In fact you can't even use loadMovieNum to load another SWF8 into your SWF8. You can use loadMovie, but the ability to reference _levels has been removed. It's like _lockroot on steroids. I was able to determine that each SWF8 is loaded as _level0.instanceN.instanceN+1, where N is a number. You can find this by placing code on a movieclip in the main timeline of your SWF8 and tracing _parent - not this._parent, just _parent. The result was _level0.instance1. I was then able to display the contents of _parent._parent, which is _level0 - not much there: lconid:527c historyUrl:history.htm? $version:WIN 9,0,15,0 instance3:_level0.instance3 instance1:_level0.instance1 instance1 and instance3 are containers that hold SWF8s that are loaded. The SWF8s are _level0.instance1.instance2 and _level0.instance3.instance4. But, all SWF8s that are loaded into a SWF9 share _global. You can't directly communicate with the SWF9 but you can communicate with other SWF8s. So what? Well, it means your loaded SWF8s may be able to be used, but depending on how you reference things, they may not work as expected. However, they will run. Derek Vadneau - Original Message - From: Johannes Nel [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, July 07, 2006 8:45 AM Subject: SPAM-LOW: Re: [Flashcoders] AS3 faster ?? the code does not execute if the parent movie is aimed at avm2. On 7/7/06, Meinte van't Kruis [EMAIL PROTECTED] wrote: wonder what happens if you load a SWF published with as2.0 into a SWF publishes in as3.0, does it have to switch VMs? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 faster ??
there are two VM's in the new player. the new VM is real snell. snell (schnell) == fast For the English-only crowd. ;-) ryanm ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] AS3 faster ??
Of course it will be faster only if you port the code over to AS3 (otherwise it will still use the old AS2/1 VM1). I posted about the 3D engine I wrote and the speed increase I got when I converted it to AS3 a few days ago so you can check that out as an example of just how much faster it is ;p ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: 06 July 2006 05:47 PM To: Flashcoders mailing list Subject: [Flashcoders] AS3 faster ?? Hi people, they say that AS3 is 10 times faster than AS2 but what does that really means ? Does that mean that my movies will play faster even if I have a few dozens movieclips with graphics flying all over the screen? Or does it just mean that my .swf will be compiling 10 times faster? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 faster ??
neo binedell schrieb: I posted about the 3D engine I wrote and the speed increase I got when I converted it to AS3 a few days ago so you can check that out as an example of just how much faster it is ;p check out where? micha ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com