BitmapData.setPixel() 1000x slower than Adobe Flash
Bug #1085164 reported by
zahurdias
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Lightspark |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Lightspark is 1000 times slower than Adobe Flash. The same code in lightspark is actually quicker using drawRect() than using setPixel()
see:
and:
tags: | added: performance |
Changed in lightspark: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Yes, this is currently horribly slow because the whole bitmap is copied on every setPixel() call; Bitmap: :updatedData( ) copies the data into style.bitmap. The copy can be avoided if Bitmap and BitmapData share the same pixel array (which is the whole point of BitmapData class anyway).