---
title: shouldCullNonVisibleNodes
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skview/shouldcullnonvisiblenodes
---

# shouldCullNonVisibleNodes

A Boolean value that indicates whether the view automatically culls non-visible nodes from the rendering tree.

## Declaration

```swift
var shouldCullNonVisibleNodes: Bool { get set }
```

## Mentioned in

Maximizing Node Drawing Performance

## Discussion

Discussion The default value is true, meaning that when the scene is rendered, the scene first searches the tree for invisible or offscreen nodes and culls them from the list of nodes to be rendered. Then the remaining (visible) nodes are processed and rendered. This is normally the desired behavior, because Scene Kit avoids expensive processing on nodes that cannot affect the final output. However, if your game is already managing the contents of the scene’s node tree (for example, by removing nodes from the tree when they are offscreen), you can set this to false to disable automatic scene culling. Disabling scene culling removes the performance overhead of this check, but each invisible or offscreen node present in the node tree reduces the performance of the renderer.

## See Also

### Configuring Performance Related Toggles

- [ignoresSiblingOrder](spritekit/skview/ignoressiblingorder.md)
- [allowsTransparency](spritekit/skview/allowstransparency.md)
- [isAsynchronous](spritekit/skview/isasynchronous.md)
