Closed Bug 1054196 Opened 11 years ago Closed 10 years ago

drawImage on canvas is extremely slow.

Categories

(Core :: Graphics: Canvas2D, defect)

31 Branch
ARM
Android
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox31 --- affected
firefox32 --- unaffected

People

(Reporter: vincent_booman, Unassigned)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 (Beta/Release) Build ID: 20140716183446 Steps to reproduce: I performed a basic canvas.drawImage to render a small portion of a 2048x2048 spritesheet. Actual results: The framerate dropped instantly to around 10 frames per second. Expected results: The framedrop should not have happened. It runs just fine on Firefox 30 and other browsers.
OS: Windows 8.1 → Android
Hardware: x86_64 → ARM
I've tested this on a Samsung Galaxy Tab 4, a Samsung Galaxy Note and a Galaxy S 2.
Component: Graphics, Panning and Zooming → Canvas: 2D
Product: Firefox for Android → Core
Version: Firefox 31 → 31 Branch
Hi, are you able to attach a small testcase? And just to be clear, the performance was good in 30 but regressed in 31?
Reporter can you answer James's question?
Flags: needinfo?(vincent_booman)
Attached file testcase.rar
This rar contains a simple html page with a canvas that displays a plain image and an FPS counter.
Flags: needinfo?(vincent_booman)
You are correct, the performance was just fine in Firefox 30.
Thanks for the reply, Vincent. I get about 20fps on this test in 31, but on 32 and higher I consistently get 60fps. I would like to find out what regressed in 31 and also what fixed it in 32. I imagine we got a busted Skia update, or something.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: