<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/cp_frame_timing_t",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Compositor Services"
    ],
    "preciseIdentifier" : "c:@T@cp_frame_timing_t"
  },
  "title" : "cp_frame_timing_t"
}
-->

# cp_frame_timing_t

A type that stores information about a frame’s encoding, rendering,
and presentation deadlines.

```
typedef struct cp_frame_timing * cp_frame_timing_t;
```

## Discussion

Before you start drawing your frame’s content, retrieve the frame’s timing
information using [`cp_frame_predict_timing`](/documentation/CompositorServices/cp_frame_predict_timing).
That function returns the latest predicted values for you to use during planning.
After you retrieve the [`cp_drawable_t`](/documentation/CompositorServices/cp_drawable_t) type for the frame, get the timing information
from the drawable instead using [`frameTiming`](/documentation/CompositorServices/LayerRenderer/Drawable/frameTiming).

---

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)