mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-06 22:34:04 +08:00
clean up optimization docs rearrange sections in nav bar add layout api sizing Q to FAQ add corner rounding to Optimizations + check back soon tags for methods to be released in 2.0 add layoutSpecs Containers overview -> node containers Node overview -> node subclasses remove ASTextCellNode
911 B
Executable File
911 B
Executable File
title, layout, permalink, prevPage, nextPage
| title | layout | permalink | prevPage | nextPage |
|---|---|---|---|---|
| Subtree Rasterization | docs | /docs/subtree-rasterization.html | layer-backing.html | synchronous-concurrency.html |
Flattening an entire view hierarchy into a single layer improves performance, but with UIKit, comes with a hit to maintainability and hierarchy-based reasoning.
With all AsyncDisplayKit nodes, enabling precompositing is as simple as:
SwiftObjective-C
rootNode.shouldRasterizeDescendants = YES;
rootNode.shouldRasterizeDescendants = true
This line will cause the entire node hierarchy from that point on to be rendered into one layer.