WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
307776
[threaded-animations] account for velocity for a transform-related animation to be high impact
https://bugs.webkit.org/show_bug.cgi?id=307776
Summary
[threaded-animations] account for velocity for a transform-related animation ...
Antoine Quint
Reported
2026-02-13 01:55:06 PST
We added a new `ThreadedTimeBasedAnimationsAtHighFrameRateEnabled` flag in
307177@main
to only update monotonic threaded animations at 60Hz on iOS while we work on selectively opting in only "high impact" animations to run at a higher frame rate. We introduced the notion of "high impact" animations in
307339@main
and only run high frame rate updates for those on iOS (provided that flag is enabled). This meant only transform-related animations can opt into a high frame rate. We need to be more selective still and only opt into transform animations that actually are high impact, for instance those that will travel on screen at a velocity that would be visually be improved with updates above 60Hz.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-02-13 01:55:11 PST
<
rdar://problem/170304142
>
Antoine Quint
Comment 2
2026-05-13 09:03:50 PDT
The initial approach to this in
307339@main
was to determine whether an animation has a "high impact" before it gets uploaded to the remote layer tree. But I think another, possibly better, option is to have a remote animation stack in the remote layer tree track the transformed bounds of its target through the last few animated frames and compute the traveled distance for the element there. This would let the display link update its refresh rate dynamically as animations enter and leave phases where they have a "high impact" rather than computing it wholesale for the entire duration of an animation. This would also compute this at the scope of an entire animation stack, which will account for all the complexities of iterations, composition, etc. I'm working towards that second option.
Antoine Quint
Comment 3
2026-05-13 14:20:54 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/64867
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug