ricardocabellov5.0balter-egos
trace mr.doob r08028
blogdemoscenefeaturedextrascontact
 *blog... kind of... *rss

« FabricLive 40 DJ Noisi...Yet another 3D Clock (... »

Can BitmapData.setPixel() fill your Browser at ~30fps?
17.07.2008
Well, seems like it can!

flaxor

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.
posted by mr.doob at 06:07
0 comment written so far

SORRY!
Is not that I don't care about what you have to say, of course I do, but they are speaking louder and I lost my patience :(
 *profile 



traditional id: Ricardo Cabello Miguel
based in: London, UK
serving to: Hi-ReS!
contact me: click here


 *latest posts 

* FDT does work in Linux (19.08.2008)
* Sorry for the delay... (19.08.2008)
* Hi-ReS! Stats (11.08.2008)
* Björk - Hidden Place (Knick & The Ene... (09.08.2008)
* Noisia vs Religion (08.08.2008)
* Inspire08 demo log, day 117 (07.08.2008)
* Inspire08 demo log, day 116 (06.08.2008)
* Thank you for writing to Yahoo! Accou... (01.08.2008)
* Thank you for writing to Yahoo! Accou... (01.08.2008)
* Definition of FAIL (31.07.2008)
* Ronny Pries live @ Alpha Box Jan'08 (23.07.2008)
* WALL·E (23.07.2008)
* Where do we get the time from? (22.07.2008)
* And now... can flash render a 320k+ vo... (21.07.2008)
* Pixel Attack 08 - 3D Slides (21.07.2008)


 *latest comments 

* C++, SDL Coding? Maybe.. ;) (Preview) (trace)
* C++, SDL Coding? Maybe.. ;) (Preview) (Joey)
* La picaresca (spt)
* Mr. Slip Up (ricardo)
* La picaresca (ricardo)
* La picaresca (spt)
* La picaresca (sole)
* Demoscene @ Cirsa (sml)
* La picaresca (humphr3y)
* La picaresca (alfio)
* fiver2's new baby: debris (Jcl)
* Barcelona = full of shit(s) (Soli)
* Demoscene @ Cirsa (Scener)
* Rar & unrar with Ubuntu (SethPlate)
* Mindcandy 2 (Jcl)


 *advertising