WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
167825
Change the CSS animation timer a to be little more than 60fps to ensure we hit that frame rate
https://bugs.webkit.org/show_bug.cgi?id=167825
Summary
Change the CSS animation timer a to be little more than 60fps to ensure we hi...
Said Abou-Hallawa
Reported
2017-02-03 20:18:52 PST
The system timer fires little bit slower than 60fps. This might cause the frame to be missed and hence can lower the frame rate significantly. The CSS animation frame rate on iOS is almost 40fps. The rAF timer was set to 15ms for the same reason. So we need to set the repeated CSS animation timer also to 15ms.
Attachments
Patch
(1.52 KB, patch)
2017-02-03 20:54 PST
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Patch
(1.69 KB, patch)
2017-02-06 11:48 PST
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Said Abou-Hallawa
Comment 1
2017-02-03 20:54:29 PST
Created
attachment 300598
[details]
Patch
Said Abou-Hallawa
Comment 2
2017-02-06 11:48:26 PST
Created
attachment 300744
[details]
Patch
Sam Weinig
Comment 3
2017-02-06 11:55:24 PST
Comment on
attachment 300744
[details]
Patch This seems very fragile. Is the plan to move this toward using the actual display link?
Said Abou-Hallawa
Comment 4
2017-02-06 12:25:25 PST
(In reply to
comment #3
)
> Comment on
attachment 300744
[details]
> Patch > > This seems very fragile. Is the plan to move this toward using the actual > display link?
I agree. And this is why I logged and created a patch for
https://bugs.webkit.org/show_bug.cgi?id=167720
. It makes the CSS animation controller a client of the DisplayRefreshMonitor. Instead of using a repeated timer, the CSS animation controller can schedule for the next display link firing. But we have a bigger plan which will make all kinds of animations be controlled by one central animation controller:
https://bugs.webkit.org/show_bug.cgi?id=167899
. The goal is be able to align animations with different frame rates properly. So I do not think I am going to land
https://bugs.webkit.org/show_bug.cgi?id=167720
since most likely this new code will be removed soon anyway. In the mean time this patch fixes the frame rate of the CSS animation on iOS. We have been using a similar trick for rAF. Please see the definition of MinimumAnimationInterval in WebCore/dom/ScriptedAnimationController.cpp. This fix is just a temporary one which we know it worked in the past.
WebKit Commit Bot
Comment 5
2017-02-06 14:00:11 PST
Comment on
attachment 300744
[details]
Patch Clearing flags on attachment: 300744 Committed
r211748
: <
http://trac.webkit.org/changeset/211748
>
WebKit Commit Bot
Comment 6
2017-02-06 14:00:15 PST
All reviewed patches have been landed. Closing bug.
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