Bug 27856 - Animation with a timing function property in a keyframe eats CPU
Summary: Animation with a timing function property in a keyframe eats CPU
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All OS X 10.5
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2009-07-30 14:29 PDT by Simon Fraser (smfr)
Modified: 2009-07-30 15:45 PDT (History)
1 user (show)

See Also:


Attachments
Testcase (11.76 KB, text/html)
2009-07-30 14:29 PDT, Simon Fraser (smfr)
no flags Details
Patch, changelog (3.24 KB, patch)
2009-07-30 14:41 PDT, Simon Fraser (smfr)
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2009-07-30 14:29:24 PDT
Created attachment 33839 [details]
Testcase

The attached demo eats about 22% of the CPU, even though only 10 things are animating.

I attach a sample; most of it is under AnimationControllerPrivate::updateAnimationTimer(bool), which seems to be firing as fast as it can become some keyframe animation is returning 0 from timeToNextService().
Comment 1 Simon Fraser (smfr) 2009-07-30 14:29:54 PDT
<rdar://problem/7104476>
Comment 2 Simon Fraser (smfr) 2009-07-30 14:41:11 PDT
Created attachment 33840 [details]
Patch, changelog
Comment 3 Simon Fraser (smfr) 2009-07-30 14:48:10 PDT
http://trac.webkit.org/changeset/46603
Comment 4 Simon Fraser (smfr) 2009-07-30 15:45:19 PDT
Commit fixed up in r46606