<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CAMetalDisplayLink/preferredFrameLatency",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CAMetalDisplayLink(py)preferredFrameLatency"
  },
  "title" : "preferredFrameLatency"
}
-->

# preferredFrameLatency

The amount of time, in frames, your app requests to render a frame.

```
var preferredFrameLatency: Float { get set }
```

## Discussion

The final latency may be bigger if the system needs more time, such as for windowed modes on macOS.

> Important:
> The only acceptable values are `1.0` and `2.0`.

---

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)