<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Drawable/frameTiming",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "c:@F@cp_drawable_get_frame_timing"
  },
  "title" : "frameTiming"
}
-->

# frameTiming

The timing information for the drawable’s frame.

```
var frameTiming: LayerRenderer.Frame.Timing { get }
```

## Discussion

This retrieves a frame’s timing information from a drawable instance that
represents that frame.
For Swift, it’s an alternative to calling a frame’s
[`predictTiming()`](/documentation/CompositorServices/LayerRenderer/Frame/predictTiming()) method.
For ObjectiveC, it’s an alternative to calling the
[`cp_frame_predict_timing`](/documentation/CompositorServices/cp_frame_predict_timing) function.

In ObjectiveC, you can determine when to start updating your data structures by
passing a [`cp_frame_timing_t`](/documentation/CompositorServices/cp_frame_timing_t) instance to the
[`cp_frame_timing_get_optimal_input_time`](/documentation/CompositorServices/cp_frame_timing_get_optimal_input_time) function.

---

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)