devtools-docs/docs/rendering-settings.html

63 строки
3.8 KiB
HTML
Исходник Обычный вид История

{{+bindTo:partials.standard_devtools_article}}
<h1>Rendering Settings</h1>
Squashed commit of the following: commit a6fbb12391a470273f6d1b389f404ed1168d531d Author: Jared Williams <jwilliams@brightcove.com> Date: Mon Jan 6 13:54:04 2014 -0500 deleted old images not used anymore. updated the fps meter image with new style commit 9f73a0c8b7b24d958488548ccdfc81e24ee42fc6 Author: Jared Williams <jwilliams@brightcove.com> Date: Fri Jan 3 17:15:11 2014 -0500 annotated the settings page screenshots + added screenshot for js source maps commit 5166fa33564cf31933645d4cbec3339290465838 Author: Jared Williams <jwilliams@brightcove.com> Date: Fri Jan 3 16:40:11 2014 -0500 annotated the cpu profile and flamechart outliers screenshots the cpu profiling doc is now updated at least as far as images go. need to update the cpu prof content though a bit commit 986912ab3b1a43d2bc3ba7bc8ea0aa3ef5df0574 Author: Jared Williams <jwilliams@brightcove.com> Date: Fri Jan 3 14:25:10 2014 -0500 moved rendering settings images into its own folder merged flame chart doc into cpu-profiling doc updated some of the content in cpu profiling deleted all unused settings images deleted unused folder still need to edit some of the new screenshots so they are annotated commit c5643bae5e76f9e6d8ee3900bfd794bfbbc1f827 Author: Jared Williams <jwilliams@brightcove.com> Date: Fri Jan 3 10:25:17 2014 -0500 new icons for shortcuts doc. deleted old ones commit 30d5c8f3f14a9c0e1277dc4bf58f48fa4c2ea7ed Author: Jared Williams <jwilliams@brightcove.com> Date: Mon Dec 9 11:42:20 2013 -0500 re-adding something i didnt mean to delete commit 3d46a459951d9cea2053dc19abc1ee6389471c57 Author: Jared Williams <jwilliams@brightcove.com> Date: Sun Dec 8 16:21:27 2013 -0500 issues #19 and #5 cuz we love shortcuts commit c99a35e8254a118cfad99556ad1dae22f9b77bfc Author: Jared Williams <jwilliams@brightcove.com> Date: Tue Dec 3 12:19:32 2013 -0500 added Opt+Delete to Sources shortcuts Closes gh-34.
2014-01-11 05:41:00 +04:00
<p>To access the Rendering Settings click on the drawer icon. You can press <span class="kbd">Esc</span> as a shortcut to open the drawer.</p>
<div class="screenshot">
<img src="rendering-settings-files/rendering-settings.png">
</div>
<h4>Show paint rectangles</h4>
<p>
When this is enabled you be able to see the regions where Chrome paints. This can help diagnose and ultimately <a href="http://www.html5rocks.com/en/tutorials/speed/unnecessary-paints/">avoid unnecessary paints</a> on a page. You can also use this to <a href="http://www.paulirish.com/2011/viewing-chromes-paint-cycle/">study painting behaviors</a> just by hovering over links, popups, or some content which dynamically updates.
</p>
<div class="screenshot">
<img src="rendering-settings-files/show-paint-rects.png">
</div>
<p>Furthermore, showing paint rectangles shows repainted areas for each frame making it easy to visualize what slows pages down. Ideally you want to keep the number of areas being repainted as low as possible.</p>
<h4>Show composited layer borders</h4>
<p>This highlights where layers are on-screen. Use this to <a href="http://www.html5rocks.com/en/tutorials/speed/layers/">accelerate render times</a> in Chrome. It can help to reduce the time it takes to render elements which may be animating or have CSS transforms/transitions applied to them that change the shape or positioning of the element.</p>
<p class="note"><strong>Note:</strong> The blue grid represents tiles, which you can think of as sub-units of a layer that Chrome uses to upload parts of a large layer at a time to the GPU. They aren't really too important in most cases.</p>
<div class="screenshot">
<img src="rendering-settings-files/composited-layer-borders.png">
</div>
<p>Enabling <a href="http://www.youtube.com/watch?v=x6qe_kVaBpg&t=23m42s">Show paint rectangles and Show layer borders</a> together can also be useful for finding any unnecessary paints which occur and cause a relayout on the Timeline panel.</p>
<p class="note"><strong>Note:</strong> Show paint rectangles and composited layer borders settings will only apply when DevTools is open.</p>
<h4>Show FPS meter</h4>
<p>Overlays an <a href="http://www.youtube.com/watch?v=x6qe_kVaBpg&t=23m17s">FPS meter</a> at the top right of the browser window which updates in real-time.</p>
<div class="screenshot">
<img src="rendering-settings-files/fps-meter.png">
<img src="rendering-settings-files/fps-memory-meter.png">
</div>
<p>When running Chrome on Android you may also <strong>show a GPU memory meter</strong> as part of the overlay. Enabling the FPS meter is <em></em>specially helpful when developing pages that have animations.</p>
<h4>Enable continuous page repainting</h4>
<p>This is a tool that helps you <a href="http://www.html5rocks.com/en/mobile/profiling/">identify elements</a> on the page which are costly. The page will <a href="http://www.youtube.com/watch?v=x6qe_kVaBpg&t=22m51s">continuously repaint</a>, showing a counter of <a href="http://updates.html5rocks.com/2013/02/Profiling-Long-Paint-Times-with-DevTools-Continuous-Painting-Mode">how much painting work is happening</a>. Then, you can hide elements and mutate styles, watching the counter, in order to figure out what is slow.</p>
<div class="screenshot">
<img src="rendering-settings-files/continuous-page-repainting.png">
</div>
<h4>Show potential scroll bottlenecks</h4>
<p>Shows area of the page that slow down scrolling. Touch and mousewheel event listeners can delay scrolling. Some areas need to repaint their content when scrolled. <a href="https://code.google.com/p/chromium/issues/detail?id=253552#c13">Additional details on causes in this ticket.</a></p>
Squashed commit of the following: commit a6fbb12391a470273f6d1b389f404ed1168d531d Author: Jared Williams <jwilliams@brightcove.com> Date: Mon Jan 6 13:54:04 2014 -0500 deleted old images not used anymore. updated the fps meter image with new style commit 9f73a0c8b7b24d958488548ccdfc81e24ee42fc6 Author: Jared Williams <jwilliams@brightcove.com> Date: Fri Jan 3 17:15:11 2014 -0500 annotated the settings page screenshots + added screenshot for js source maps commit 5166fa33564cf31933645d4cbec3339290465838 Author: Jared Williams <jwilliams@brightcove.com> Date: Fri Jan 3 16:40:11 2014 -0500 annotated the cpu profile and flamechart outliers screenshots the cpu profiling doc is now updated at least as far as images go. need to update the cpu prof content though a bit commit 986912ab3b1a43d2bc3ba7bc8ea0aa3ef5df0574 Author: Jared Williams <jwilliams@brightcove.com> Date: Fri Jan 3 14:25:10 2014 -0500 moved rendering settings images into its own folder merged flame chart doc into cpu-profiling doc updated some of the content in cpu profiling deleted all unused settings images deleted unused folder still need to edit some of the new screenshots so they are annotated commit c5643bae5e76f9e6d8ee3900bfd794bfbbc1f827 Author: Jared Williams <jwilliams@brightcove.com> Date: Fri Jan 3 10:25:17 2014 -0500 new icons for shortcuts doc. deleted old ones commit 30d5c8f3f14a9c0e1277dc4bf58f48fa4c2ea7ed Author: Jared Williams <jwilliams@brightcove.com> Date: Mon Dec 9 11:42:20 2013 -0500 re-adding something i didnt mean to delete commit 3d46a459951d9cea2053dc19abc1ee6389471c57 Author: Jared Williams <jwilliams@brightcove.com> Date: Sun Dec 8 16:21:27 2013 -0500 issues #19 and #5 cuz we love shortcuts commit c99a35e8254a118cfad99556ad1dae22f9b77bfc Author: Jared Williams <jwilliams@brightcove.com> Date: Tue Dec 3 12:19:32 2013 -0500 added Opt+Delete to Sources shortcuts Closes gh-34.
2014-01-11 05:41:00 +04:00
{{/partials.standard_devtools_article}}