Closed
Bug 913228
Opened 11 years ago
Closed 11 years ago
Scrolling performance is horrible in today's nightly
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox25 unaffected, firefox26 affected)
RESOLVED
FIXED
Firefox 26
Tracking | Status | |
---|---|---|
firefox25 | --- | unaffected |
firefox26 | --- | affected |
People
(Reporter: kbrosnan, Assigned: kats)
References
Details
(Keywords: perf, regression, reproducible)
Attachments
(1 file)
1.46 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
Scrolling performance seriously regressed today.
Reporter | ||
Comment 1•11 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=12e4307ff333&tochange=a40169f091ea A lot of changes in the range but bug 711959 stands out.
Blocks: 711959
Comment 2•11 years ago
|
||
Seeing this too, Nexus 7 and 4. In both they no longer continue to scroll after I stop touching the screen unlike previously.
Keywords: regression
Comment 4•11 years ago
|
||
regressions in scrolling test results for today's builds?
Flags: needinfo?(gbrown)
Keywords: perf,
reproducible
Reporter | ||
Comment 5•11 years ago
|
||
This is not the same as bug 912806 it was regressed by bug 907754. This was regressed by bug 711959 I've built on either side of bug 711959 6366f575b4c6 scrolls fine. f13c3491c9c8 does not fling.
Comment 6•11 years ago
|
||
Talos agrees: Subject: <Regression> Fx-Team - Robocop Pan Benchmark - Android 4.0.4 - 423% Regression: Fx-Team - Robocop Pan Benchmark - Android 4.0.4 - 423% increase --------------------------------------------------------------------------- Previous: avg 6106.708 stddev 603.222 of 12 runs up to revision 6366f575b4c6 New : avg 31925.883 stddev 8694.878 of 12 runs since revision f13c3491c9c8 Change : +25819.175 (423% / z=42.802) Graph : http://mzl.la/18xpsPH Changeset range: http://hg.mozilla.org/integration/fx-team/pushloghtml?fromchange=6366f575b4c6&tochange=f13c3491c9c8 Changesets: * http://hg.mozilla.org/integration/fx-team/rev/d6515c4d6cf8 : Augustin Trancart <augustin.trancart@gmail.com> - Bug 711959 - Add RenderTask and the necessary mechanisms to use it. r=kats : http://bugzilla.mozilla.org/show_bug.cgi?id=711959 * http://hg.mozilla.org/integration/fx-team/rev/05c2d7b68a22 : Augustin Trancart <augustin.trancart@gmail.com> - Bug 711959 - Adapt LayerMarginsAnimator to use the new RenderTask mechanism. r=kats : http://bugzilla.mozilla.org/show_bug.cgi?id=711959 * http://hg.mozilla.org/integration/fx-team/rev/f746195f5595 : Augustin Trancart <augustin.trancart@gmail.com> - Bug 711959 - Adapt JavaPanZoomController to use the RenderTask mechanism. r=Cwiiis, kats : http://bugzilla.mozilla.org/show_bug.cgi?id=711959 * http://hg.mozilla.org/integration/fx-team/rev/0fb65049cb95 : Augustin Trancart <augustin.trancart@gmail.com> - Bug 711959 - Making BounceRenderTask time-based. r=kats : http://bugzilla.mozilla.org/show_bug.cgi?id=711959 * http://hg.mozilla.org/integration/fx-team/rev/f13c3491c9c8 : Augustin Trancart <augustin.trancart@gmail.com> - Bug 711959 - Make FlingRenderTask time-based. r=kats : http://bugzilla.mozilla.org/show_bug.cgi?id=711959 Bugs: * http://bugzilla.mozilla.org/show_bug.cgi?id=711959 - Animations could be performed more efficiently
Flags: needinfo?(gbrown)
Updated•11 years ago
|
Flags: needinfo?(bugmail.mozilla)
Comment 7•11 years ago
|
||
As I did the patches in fault, I can try to fix that. I received two mails : - Robocop Pan Benchmark did +423% - another one saying "Improvement: Fx-Team - Robocop Checkerboarding Real User Benchmark - Android 4.0.4 - 35.6% decrease" Can you tell me what this means? I don't really know what these tests are suppose to check. One possibilities is the fact we used nanoseconde instead of milliseconde to get current framerate. I'll try to investigate that.
Comment 8•11 years ago
|
||
f13c3491c9c8 is at fault, thanks to Capella for pointing that. The bad parts are the changes in Axis.java between lines 340 and 353. This code was adjusting friction according to realFrameRate, thus calling getFrameAdjustedFriction at each frame (and not at startup only). But getFrameAdjustedFriction calls Math.pow and Math.log which are quite slow I believed. Do we rollback this patch? Or do we find a faster way to calculate these?
Assignee | ||
Comment 9•11 years ago
|
||
I was able to reproduce the problem and investigated. I think the problem is actually much simpler - the long/long division in getFrameAdjustedFriction can round to zero because of the way Java does math. The attached patch fixes it for me locally, I pushed it to try to see the effect on talos: https://tbpl.mozilla.org/?tree=Try&rev=44361d7b3e75
Attachment #800770 -
Flags: review?(augustin.trancart)
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 800770 [details] [diff] [review] Fix long division to use float division Review of attachment 800770 [details] [diff] [review]: ----------------------------------------------------------------- autra r+'d via IRC. Apparently his bugzilla account lacks permissions to do reviews?
Attachment #800770 -
Flags: review?(augustin.trancart) → review+
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → bugmail.mozilla
Assignee | ||
Comment 11•11 years ago
|
||
The talos regression got a little bit better but I think the numbers are unreliable right now anyway because we might actually be scrolling around on about:home (see bug 910106). Anyway this patch fixes the visible scrolling performance so I'm landing it: https://hg.mozilla.org/integration/fx-team/rev/b5eae5bcf096
Comment 12•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b5eae5bcf096
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
Reporter | ||
Updated•11 years ago
|
tracking-fennec: ? → ---
tracking-firefox26:
? → ---
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•