Swiftgram/docs/_docs/subtree-rasterization.md
WymzeeLabs 17c4d606d7 Update subtree-rasterization.md (#679)
* Update subtree-rasterization.md

For Texture 2.5.1 API

* Update subtree-rasterization.md
2017-11-21 12:16:04 +00:00

894 B
Executable File

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 Texture nodes, enabling precompositing is as simple as:

SwiftObjective-C
[rootNode enableSubtreeRasterization];
rootNode.enableSubtreeRasterization()

This line will cause the entire node hierarchy from that point on to be rendered into one layer.