PaintTouchActionRects has been enabled!

33 views
Skip to first unread message

Philip Rogers

unread,
Nov 29, 2018, 2:40:30 PM11/29/18
to inpu...@chromium.org, pain...@chromium.org
PaintTouchActionRects is a project to re-implement how Blink sets the compositor touch-action regions by re-using the paint system to "paint" touch action rects. It's been enabled by default for about two weeks (https://crrev.com/607991) and is on-track to be in M72.

Here's a summary of the project's goals, results, and implementation: https://docs.google.com/document/d/1ksiqEPkDeDuI_l5HvWlq1MfzFyDxSnsNB8YXIaXa3sE/view

Early results are looking great, including a 5% reduction in Canary Android's total Mainframe.UpdateTime metric. Canary Android's ScrollingCoordinator.UpdateTime 99th %ile went from 14ms to 3ms.

Chris Harrelson

unread,
Nov 29, 2018, 2:51:46 PM11/29/18
to Philip Rogers, inpu...@chromium.org, pain...@chromium.org
Awesome work! Really amazing.

--
You received this message because you are subscribed to the Google Groups "paint-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paint-dev+...@chromium.org.
To post to this group, send email to pain...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/paint-dev/CAJgFLLshHXesp27T6FCwJRfO9NErUuQiDF0XyFJEKv-ae9vo7g%40mail.gmail.com.

Adrienne Walker

unread,
Nov 29, 2018, 3:03:49 PM11/29/18
to Philip Rogers, inpu...@chromium.org, pain...@chromium.org
Holy moly, those are some nice perf numbers!

--
You received this message because you are subscribed to the Google Groups "paint-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paint-dev+unsubscribe@chromium.org.

dan...@chromium.org

unread,
Nov 29, 2018, 3:06:36 PM11/29/18
to Philip Rogers, inpu...@chromium.org, pain...@chromium.org
So awesome :) 🙌
 

--
You received this message because you are subscribed to the Google Groups "paint-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paint-dev+...@chromium.org.

Robert Flack

unread,
Nov 29, 2018, 9:50:56 PM11/29/18
to dan...@chromium.org, Philip Rogers, inpu...@chromium.org, pain...@chromium.org
This is great! Thanks for all the hard work! I'm amazed by how significant the impact of this has been.

Timothy Dresser

unread,
Nov 30, 2018, 10:52:51 AM11/30/18
to Robert Flack, Dana Jansens, p...@chromium.org, inpu...@chromium.org, pain...@chromium.org
Awesome work!

Was the impact here large enough to show up in any of our top level metrics?
Maybe one of: 
  • Event.Latency.ScrollBegin.Touch.TimeToScrollUpdateSwapBegin42
  • Event.Latency.ScrollUpdate.Touch.TimeToScrollUpdateSwapBegin42
  • Scheduling.Renderer.DrawInterval2
Tim

Philip Rogers

unread,
Dec 1, 2018, 1:26:41 PM12/1/18
to tdre...@chromium.org, Robert Flack, Dana Jansens, inpu...@chromium.org, pain...@chromium.org
The change is just hitting dev channel and it's possible we're seeing a small-percentage drop in Event.Latency.ScrollBegin.Touch.TimeToScrollUpdateSwapBegin4 at the 50% but it's a little too early to tell. Blink changes are more likely to affect the lower-percentiles (<=50%) of TimeToScrollUpdateSwapBegin4 because the higher-percentiles are dominated by something else (see: histograms), likely script.

Rick Byers

unread,
Dec 3, 2018, 10:31:02 AM12/3/18
to Philip Rogers, Tim Dresser, Robert Flack, Dana Jansens, inpu...@chromium.org, pain...@chromium.org
Awesome work everyone! 

Ever since I overhauled this system back in 2013 I had wanted to see it re-implemented in terms of the paint system - it's clearly the right architecture. Thank you for finally removing all my terrible hacks and heuristics!

Perhaps someone should update the public compositor touch hit testing design docs page to at least indicate it's now obsolete and to reference the new design?

Thanks!
   Rick

oj...@google.com

unread,
Dec 3, 2018, 5:00:17 PM12/3/18
to Rick Byers, Philip Rogers, Tim Dresser, Robert Flack, Dana Jansens, inpu...@chromium.org, pain...@chromium.org
\o/ any progress on the initiating link navigation network requests on the compositor thread experiment?

Philip Rogers

unread,
Dec 3, 2018, 6:01:25 PM12/3/18
to Ojan Vafai, Rick Byers, tdre...@chromium.org, Robert Flack, Dana Jansens, inpu...@chromium.org, pain...@chromium.org
No progress but I plan to do the investigation in Q1. The potential benefits have been estimated but it may be complex to actually implement, so the plan is to figure out how implementable it is.

For others, https://docs.google.com/document/d/14P2mK2JnH0LzvD5CiXWz29P6dlimT2Rg_7fgPzgA5wo has more information about this project.
Reply all
Reply to author
Forward
0 new messages