Closed Bug 943086 Opened 12 years ago Closed 12 years ago

Keep Scrolling Portion of Calendar App as One Layer using will-animate

Categories

(Firefox OS Graveyard :: Gaia::Calendar, defect, P2)

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mchang, Assigned: mchang)

References

Details

(Keywords: perf, Whiteboard: [c=handeye p=2 s= u=])

Attachments

(1 file)

Append the css property will-animate: scroll to the scrollable portion of the calendar app.
Attached file Github Pull Request
I guess the proper way to review for Gaia is to attach github pull requests to bugs.
Attachment #8341291 - Flags: review?(bgirard)
Video looks good. On my device the calendar was smooth even before this. Did you see a performance improvement?
Comment on attachment 8341291 [details] [review] Github Pull Request r+, even if we don't skip frames this should be easier on the battery.
Attachment #8341291 - Flags: review?(bgirard) → review+
The performance already seemed pretty spiffy, I didn't check the rasterize times in a profile. I'll do that.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Here are some profiling results with will-animate for the calendar app. Each number represents the 'rasterize' time in milliseconds of the first 5 frames of the compositor. With: http://people.mozilla.org/~bgirard/cleopatra/#report=3f52c3a1f612969f0ab716e7b409aaad373fcfc0 2.30 9.92 9.38 8.39 36.94 Total: 66.93 Without: http://people.mozilla.org/~bgirard/cleopatra/#report=d7c78b2e57cb4bc34ccbb1448a00d7343e7158db 74.94 8.31 7.58 5.73 4.81 Total: 101.37 In total, looks like we save ~34 ms.
Depends on: will-change
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: