Tuesday, March 13, 2012

Checkerboarding CNN.com


The graphics team has been spending most of its time working on "off-main thread compositing" (OMTC) on the maple project branch. By separating Gecko into two threads, a content thread and a composition thread, we hope to make interacting with Firefox on Android more pleasant, because we won't be waiting on content to pan around pages.

When you pan to an area that hasn't been drawn yet, we display a "checkerboard" indicating that the content will be shown soon. Obviously, we want to minimize the time we display checkerboard to the minimum possible.

Here is the current breakdown of where we spend our time while panning around on cnn.com:

34.2%painting
14.7%waiting for texture upload to finish
12.2%sleeping
8.2%building display lists
3.4%servicing timers
27.3%other

No comments: