---
title: requestResidency()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtlresidencyset/requestresidency()
---

# requestResidency()

Tells Metal to do as much preparatory work as it can, with the system’s current conditions, to make the set’s resource allocations resident.

## Declaration

```swift
func requestResidency()
```

## Mentioned in

Simplifying GPU resource management with residency sets

## Discussion

Discussion Call the method anytime after calling a residency set’s commit() method, ideally well before calling the commit() method of any MTLCommandBuffer that uses it. The method may postpone some of the necessary steps to make resources resident in scenarios where other apps concurrently need resources in residency.
