<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Frame/Timing",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "c:@S@cp_frame_timing_t"
  },
  "title" : "LayerRenderer.Frame.Timing"
}
-->

# LayerRenderer.Frame.Timing

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

```
struct Timing
```

## Overview

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

## Topics

### Updating the frame contents

[`var optimalInputTime: LayerRenderer.Clock.Instant`](/documentation/CompositorServices/LayerRenderer/Frame/Timing/optimalInputTime)

The optimal time to start the frame submission process.

### Rendering the frame

[`var renderingDeadline: LayerRenderer.Clock.Instant`](/documentation/CompositorServices/LayerRenderer/Frame/Timing/renderingDeadline)

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

### Displaying the frame

[`var presentationTime: LayerRenderer.Clock.Instant`](/documentation/CompositorServices/LayerRenderer/Frame/Timing/presentationTime)

The time at which the system displays the frame onscreen.

### Creating the timing details

[`init()`](/documentation/CompositorServices/LayerRenderer/Frame/Timing/init())

### Instance Properties

[`var trackableAnchorTime: LayerRenderer.Clock.Instant`](/documentation/CompositorServices/LayerRenderer/Frame/Timing/trackableAnchorTime)

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

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)