mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-10 17:05:13 +08:00
16 lines
468 B
Markdown
Executable File
16 lines
468 B
Markdown
Executable File
---
|
|
title: Subtree Rasterization
|
|
layout: docs
|
|
permalink: /docs/subtree-rasterization.html
|
|
next: drawing-priority.html
|
|
---
|
|
|
|
Precompositing. Flattening an entire view hierarchy into a single layer also improves performance, but comes with a hit to maintainability and hierarchy-based reasoning. Nodes can do this for you too!
|
|
|
|
```
|
|
rootNode.shouldRasterizeDescendants = YES;
|
|
```
|
|
|
|
...will cause the entire node hierarchy from that point on to be rendered into one layer.
|
|
|