drawImage on canvas is extremely slow.

RESOLVED WORKSFORME

Status

()

Core
Canvas: 2D
RESOLVED WORKSFORME
3 years ago
2 years ago

People

(Reporter: vincent_booman, Unassigned)

Tracking

({regression})

31 Branch
ARM
Android
regression
Points:
---

Firefox Tracking Flags

(firefox31 affected, firefox32 unaffected)

Details

Attachments

(1 attachment)

4.72 KB, application/x-rar
Details
(Reporter)

Description

3 years ago
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.
(Reporter)

Updated

3 years ago
OS: Windows 8.1 → Android
Hardware: x86_64 → ARM
(Reporter)

Comment 1

3 years ago
I've tested this on a Samsung Galaxy Tab 4, a Samsung Galaxy Note and a Galaxy S 2.

Updated

3 years ago
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)
(Reporter)

Comment 4

3 years ago
Created attachment 8475100 [details]
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)
(Reporter)

Comment 5

3 years ago
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.
Keywords: regression, regressionwindow-wanted

Updated

3 years ago
Status: UNCONFIRMED → NEW
status-firefox31: --- → affected
status-firefox32: --- → unaffected
Ever confirmed: true
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Keywords: regressionwindow-wanted
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.