Closed Bug 1386406 Opened 7 years ago Closed 7 years ago

Audit animation CSS to make sure that each animation-duration is set to 60fps based on step count

Categories

(Firefox :: Theme, defect, P1)

defect

Tracking

()

RESOLVED FIXED
Firefox 57
Iteration:
57.1 - Aug 15
Tracking Status
firefox57 --- fixed

People

(Reporter: jaws, Assigned: jaws)

References

(Blocks 1 open bug)

Details

(Whiteboard: [reserve-photon-animation])

Attachments

(1 file)

From bug 1383689, I noticed that we weren't using the correct 60fps timing for the animation-duration, and in that patch I arrived at the animation-duration by multiplying the steps (69) by 16 (16ms for each frame). However, this approximation is wrong and on a large number of frames it may get off by a lot (in this example 46ms).

We should make sure that the animation-duration is set to step-count / 60, which will give us the correct animation-duration based on the number of frames.

With the incorrect animation-duration, it is possible that we will skip frames during the animation as vsync keeps us at 60fps.
Iteration: --- → 56.4 - Aug 1
Flags: qe-verify?
Priority: -- → P1
The values used in this patch are based on step-count / 60. If necessary, rounding up to the closest millisecond.
Comment on attachment 8892635 [details]
Bug 1386406 - Update animation-duration of the Photon animations to match 60fps timing.

https://reviewboard.mozilla.org/r/163624/#review169082

Checks out. I've made a note to update the download start animation in the same way.
Attachment #8892635 - Flags: review?(sfoster) → review+
Iteration: 56.4 - Aug 1 → 57.1 - Aug 15
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c56fec3372fe
Update animation-duration of the Photon animations to match 60fps timing. r=sfoster
Flags: qe-verify? → qe-verify-
https://hg.mozilla.org/mozilla-central/rev/c56fec3372fe
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: