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

# cp_frame_timing_get_rendering_deadline

Returns the time at which you must finish all work for the specified frame.

```
cp_time_t cp_frame_timing_get_rendering_deadline(cp_frame_timing_t frame_timing);
```

## Parameters

`frame_timing`

The frame’s timing information. Fetch this information using the [`cp_frame_predict_timing`](/documentation/CompositorServices/cp_frame_predict_timing) function. After you retrieve the frame’s drawable type, get the information using [`frameTiming`](/documentation/CompositorServices/LayerRenderer/Drawable/frameTiming) instead.

## Return Value

The Mach absolute time at which you must finish all work and commit your command buffers to the GPU.

## Discussion

This value reflects the time you need to finish your work and deliver the frame to the system. Finish all CPU tasks, commit your Metal command buffers, and call [`endSubmission()`](/documentation/CompositorServices/LayerRenderer/Frame/endSubmission()) by the specified time. This time is before the actual presentation time of the frame, because it accounts for the Compositor Services overhead needed to render your frame and display it.

---

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)