Open Bug 1330627 Opened 9 years ago Updated 3 years ago

Jerky animation when animating perspective and transform at the same time

Categories

(Core :: DOM: Animation, defect, P3)

defect

Tracking

()

Tracking Status
firefox50 --- wontfix
firefox51 --- affected
firefox52 --- affected
firefox53 --- affected

People

(Reporter: gibbok.coding, Unassigned)

References

Details

(Keywords: parity-chrome)

Attachments

(1 file)

Attached video 2017-01-12 14-03-33.flv
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 Steps to reproduce: - Open https://jsfiddle.net/gibbok/8fL3g5tf/ Actual results: The code snippet use Web Animations API to animate two divs. The first animate `perspective` value for a `div wrapper. The second animate 'transform' for `div` content. Both animations execute simultaneously. The result is a jerky animation on FF: 50.1.0 FF: 52.0a2 (2017-01-12) (32-bit) On Chrome Version 55.0.2883.87 m both animation are fluid and have no issues. Expected results: The animation should be fluid as in Chrome version.
Component: Untriaged → Layout
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [parity-chrome]
I don't see any particular jerkiness on my machine, but I wouldn't be surprised if there was some: we don't animate 'perspective' on the compositor so it's susceptible to main thread jank. (You can verify this in the animation inspector where you can see that the transform animation is running on the compositor and the perspective animation is not.)
I'm not really sure how feasible this is or how frequently it is used.
Summary: Jerky animation when using Web Animations and perspective → Animate perspective on the compositor
Version: 50 Branch → Trunk
Oh, now I see the video and I guess this bug is more about synchronization between the perspective animation and transform animation. That suggests we add another heuristic to turn off transform animations when we have perspective animations running at the same time? Perhaps it would just be an extension of bug 1301305 to treat 'perspective' as a geometric property. Or perhaps limited to when perspective is being animated on an (inclusive) ancestor.
Component: Layout → DOM: Animation
Summary: Animate perspective on the compositor → Jerky animation when animating perspective and transform at the same time
s/turn off transform animations/turn off async transform animations/
Priority: -- → P3
Mass bug change to replace various 'parity' whiteboard flags with the new canonical keywords. (See bug 1443764 comment 13.)
Keywords: parity-chrome
Whiteboard: [parity-chrome]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: