*blog... kind of... *rss
Can BitmapData.setPixel() fill your Browser at ~30fps?
0 commentsWell, seems like it can!

This is something I was testing some weeks ago while on holidays. I was testing some tricks to improve the speed of flash raster methods. While at it, I played around with the usual XOR code a bit but I wasn't getting much (~20fps at 512x256).
Weeks later, while having a nice coding session with Texel I found Forrest Briggs post about this same topic, applied everything together, and there we go, 1024x1024 at ~38fps.
The source code is very simple but if you want to take a look... here you have.
So... in short, never forget the BitmapData.lock() and BitmapData.unlock() methods, it gave a ~7 > ~38 fps increase.

Weeks later, while having a nice coding session with Texel I found Forrest Briggs post about this same topic, applied everything together, and there we go, 1024x1024 at ~38fps.
The source code is very simple but if you want to take a look... here you have.
So... in short, never forget the BitmapData.lock() and BitmapData.unlock() methods, it gave a ~7 > ~38 fps increase.
*profile

traditional id: Ricardo Cabello Miguel
based in: London, UK
more: github, twitter, twitpic, soundcloud and flattr
*post nav
And now... can flash render a 320k+ voxels head?
Pixel Attack 08 - 3D Slides
My take on the RA DIOHEA_D / HOU SE OF_C ARDS thing
Story of Stuff
FabricLive 40 DJ Noisia
Can BitmapData.setPixel() fill your Browser at ~30fps?
Yet another 3D Clock (D///FEST holding page)
How-to unlock your Vodafone UK mobile phone
escena.org DVD #1 / 2008 released (with sources)
New Neave.com
Speaking @ Pixel Attack (Valencia, Spain)