Hi Mike, I won't be posting the source of this one yet (it's a mess), but I quickly converted this Beta 2 / 3 example I did to illustrate the power of .lock().
http://www.unitzeroone.com/flex_2/mandelbrot_explorer/ It's a simple Mandelbrot explorer, it was one of my first attempts of creating a Flex component. I just polished it up so it works again, it's not finished. If you first change the settings to one of the larger ones (Either HUGE, Fraczilla or WS), then hit "draw", look at the Ms, then change the lock checkbox, hit draw again, and see the MS rise. On my duo core machine it makes about 200Ms of difference in WS size. Ralph. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Mountain Sent: woensdag 16 augustus 2006 12:19 To: Flashcoders mailing list Subject: RE: [Flashcoders] AS3 bitmapdata lock/unlock Hi Ralph If you're feeling generous I'd be interested in seeing the source for those comparisons Cheers M > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Hauwert, Ralph > Sent: 16 August 2006 11:16 > To: Flashcoders mailing list > Subject: RE: [Flashcoders] AS3 bitmapdata lock/unlock > > Actually doublebuffering or pageflipping routines could > easily use these functions for optimizations. The thing is, > that as soon as you swap out one bitmapdata for another (or > the holder bitmap class), you lock it anyway. > > The lock function on itself does not replace the functions of > a double / triple / frame buffer or a pageflipping routine. > But you could easily intergrate these functions. > > I've did some speed comparisons; lock and unlock make a great > deal of difference in speed; if you are writing a large > amount of pixels, rectangles; be sure to lock first. > > Ralph. _______________________________________________ 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