Closed Bug 780336 Opened 9 years ago Closed 9 years ago
Element Scrolling cosumes 7% of profile time on gaia homescreen, but isn't used
The homescreen implements its own panning physics, but the BrowserElementScrolling fallback is still kicking in and apparently having its values stomped by the homescreen's. It's using 7% of profile time which corresponds to a nontrivial framerate difference. There may be something we can do to make the BrowserElementScrolling code cheaper, or maybe we need to stopPropagation() or something in gaia. Though it seems that the gaia code runs after BES or the gaia stuff wouldn't "win".
9 years ago
Early-returning from ContentPanning.handleEvent() buys us 3-4fps.
This patch should force an early return in onTouchMove if there is nothing to scroll. (Thanks a lot for the profiling information!)
Assignee: nobody → 21
Status: NEW → ASSIGNED
Attachment #649003 - Flags: review?(jones.chris.g)
9 years ago
Attachment #649003 - Flags: review?(jones.chris.g) → review+
Sent to try: http://tbpl.mozilla.org/?tree=Try&rev=034dbbabe904
OS: Linux → All
Hardware: x86_64 → All
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
blocking-basecamp: ? → +
You need to log in before you can comment on or make changes to this bug.