Closed Bug 935688 Opened 11 years ago Closed 11 years ago

drawImage() is about 500x slower on firefox for android

Categories

(Core :: Graphics, defect)

ARM
Android
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 884226

People

(Reporter: yury, Unassigned)

Details

(Whiteboard: [shumway])

Attachments

(2 files, 1 obsolete file)

Attached file drawImage test case (obsolete) —
The following test is executed 521x slower on Galaxy Tab III (46.91 msec/frame) than on Windows (0.09 msec/frame)

(Most of the flash games cache bitmaps and perform non-scaled pixel-snapped drawImage)
Attached file drawImage test case
Attachment #828209 - Attachment is obsolete: true
Component: Graphics, Panning and Zooming → Graphics
Product: Firefox for Android → Core
Attached file Faster test case
This test case is specific to drawing other canvases, not just images. The reason your test case is slow is because we have to read back the pixels via OpenGL and re-upload them as textures to the on-screen canvas. We might be able to cache this, but we aren't doing that right now.

I attached a modified version of your test case with the typical usage which is dramatically faster.
Looks like this is a dup of 884226. I agree that we should make this case faster by falling back to software and/or adding a flag.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: