<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKEffectNode/shouldRasterize",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKEffectNode(py)shouldRasterize"
  },
  "title" : "shouldRasterize"
}
-->

# shouldRasterize

A Boolean value that indicates whether the results of rendering the child nodes should be cached.

```
var shouldRasterize: Bool { get set }
```

## Discussion

If the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the effect node caches the filtered image for use in future frames. If the value is <doc://com.apple.documentation/documentation/Swift/false>, then SpriteKit discards the rendered image and redraws it from scratch the next time the node is rendered. The default value is <doc://com.apple.documentation/documentation/Swift/false>. Caching the rendered image uses more memory and may take more time to render. However, if the effect node’s descendants rarely change, caching can improve performance.

When caching is enabled, changes to the effect node’s children trigger updates to the cached image in the next frame of animation. However, changing the filter’s properties does not.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)