Closed
Bug 621984
Opened 14 years ago
Closed 14 years ago
replace mozRequestAnimationFrame() with mozRequestAnimationFrame(callback)
Categories
(Firefox for Android Graveyard :: Panning/Zooming, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: romaxa, Assigned: mfinkle)
References
Details
(Keywords: perf)
Attachments
(1 file)
4.96 KB,
patch
|
vingtetun
:
review+
|
Details | Diff | Splinter Review |
discussion on irc about scrolling performance related problems in fennec
**************************
23:16 < romaxa> roc: I'm not 100% sure yet and don't have enough profile data, but I've commented out this
http://hg.mozilla.org/mobile-browser/file/e600436e7e97/chrome/content/input.js#l390 ... do you think it is cheap to call
mozRequestAnimationFrame and addEventListener("MozBeforePaint") while scrolling?
23:17 < romaxa> roc:: and removing that give us ~2-3 FPS (56->59)
23:18 < roc> you should use mozRequestAnimationFrame(callback) instead of the event listener, that'd be faster
**************************
Assignee | ||
Comment 1•14 years ago
|
||
Uses callback listener instead of events
Assignee: nobody → mark.finkle
Attachment #500800 -
Flags: review?(21)
Comment 2•14 years ago
|
||
Comment on attachment 500800 [details] [diff] [review]
patch
Seems good to me.
Attachment #500800 -
Flags: review?(21) → review+
Assignee | ||
Comment 3•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 4•14 years ago
|
||
I'm not seeing a noticeable difference in tpan scores. Not sure if that's expected, though:
http://graphs.mozilla.org/graph.html#tests=[[69,11,469]]&sel=1293806051,1294632364
http://graphs.mozilla.org/graph.html#tests=[[69,11,622]]&sel=1293264597,1294634165
Comment 5•14 years ago
|
||
Not sure if there is any other way to verify this fix other than code inspection?
Assignee | ||
Comment 6•14 years ago
|
||
(In reply to comment #5)
> Not sure if there is any other way to verify this fix other than code
> inspection?
Probably not. I don't know if Tpan tests kinetic panning or not. Even so, we made the change because:
* Robert (roc) thought it would be faster. How much faster? we don't know.
* It's cleaner. We don't need to worry about removing the event listener.
Reporter | ||
Comment 7•14 years ago
|
||
would be nice to check Tpan results with commented out
this._waitingForPaint = true
Comment 8•14 years ago
|
||
(In reply to comment #7)
> would be nice to check Tpan results with commented out
> this._waitingForPaint = true
What does that do?
Is there a way to do the Tpan test locally?
Comment 9•14 years ago
|
||
Can somebody verify this please?
You need to log in
before you can comment on or make changes to this bug.
Description
•