mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/AsyncDisplayKit git-subtree-mainline: d06f423e0ed3df1fed9bd10d79ee312a9179b632 git-subtree-split: 02bedc12816e251ad71777f9d2578329b6d2bef6
894 B
Executable File
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.