---
title: queueDepth
framework: screencapturekit
role: symbol
role_heading: Instance Property
path: screencapturekit/scstreamconfiguration/queuedepth
---

# queueDepth

The maximum number of frames for the queue to store.

## Declaration

```swift
var queueDepth: Int { get set }
```

## Discussion

Discussion By default, the system sets the queue depth to its minimum value of three frames. Specifying more frames uses more memory, but may allow you to process frame data without stalling the display stream. important: Don’t exceed a queue depth of eight frames.

## See Also

### Configuring captured frames

- [minimumFrameInterval](screencapturekit/scstreamconfiguration/minimumframeinterval.md)
- [captureResolution](screencapturekit/scstreamconfiguration/captureresolution.md)
- [SCCaptureResolutionType](screencapturekit/sccaptureresolutiontype.md)
