Bug 134879

Summary: [iOS] Throttle painting using a UI-process-side CADisplayLink
Product: WebKit Reporter: Tim Horton <thorton>
Component: WebKit2Assignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, simon.fraser
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch simon.fraser: review+

Tim Horton
Reported 2014-07-13 19:30:07 PDT
Just waiting for CA to "commit" in the UI process isn't enough, because we still aren't throttled to 60fps, because the UI process runloop is just happily looping away. Let's use a CADisplayLink and actually throttle the didUpdate reply to 60fps, thus throttling painting (often only barely makes 60fps anyway) and requestAnimationFrame (much more problematic). <rdar://problem/17641699>
Attachments
patch (7.40 KB, patch)
2014-07-13 21:58 PDT, Tim Horton
simon.fraser: review+
Tim Horton
Comment 1 2014-07-13 21:58:19 PDT
Simon Fraser (smfr)
Comment 2 2014-07-14 10:22:15 PDT
Comment on attachment 234840 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=234840&action=review > Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:67 > + _displayLink.paused = true; YES
Tim Horton
Comment 3 2014-07-14 11:12:29 PDT
Note You need to log in before you can comment on or make changes to this bug.