---
title: recommendedMaxWorkingSetSize
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtldevice/recommendedmaxworkingsetsize
---

# recommendedMaxWorkingSetSize

An approximation of how much memory, in bytes, this GPU device can allocate without affecting its runtime performance.

## Declaration

```swift
var recommendedMaxWorkingSetSize: UInt64 { get }
```

## Discussion

Discussion You can help the GPU maintain its performance by keeping the total memory footprint of its resources and heaps less than this threshold value.

## See Also

### Checking a GPU device’s memory

- [currentAllocatedSize](metal/mtldevice/currentallocatedsize.md)
- [hasUnifiedMemory](metal/mtldevice/hasunifiedmemory.md)
- [maxTransferRate](metal/mtldevice/maxtransferrate.md)
