<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLDrawable/present(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLDrawable(im)presentAtTime:"
  },
  "title" : "present(at:)"
}
-->

# present(at:)

Presents the drawable onscreen at a specific host time.

```
func present(at presentationTime: CFTimeInterval)
```

## Parameters

`presentationTime`

The Mach absolute time at which the drawable should be presented, in seconds.

## Discussion

When a command queue schedules a command buffer for execution, it tracks whether any commands in that command buffer need to render or write to the drawable object. When you call this method, the drawable waits until all render and write requests for that drawable are complete. If they complete prior to the specified time, the drawable presents the content at that time. If the commands complete after the presentation time, the drawable presents its contents as soon as possible.

> Note:
> To avoid presenting a drawable before any work is scheduled, or to avoid holding on to a drawable longer than necessary, call a command buffer’s ``doc://com.apple.metal/documentation/Metal/MTLCommandBuffer/present(_:atTime:)`` method instead of a drawable’s ``doc://com.apple.metal/documentation/Metal/MTLDrawable/present(at:)`` method. The ``doc://com.apple.metal/documentation/Metal/MTLCommandBuffer/present(_:atTime:)`` method is a convenience method that calls the given drawable’s ``doc://com.apple.metal/documentation/Metal/MTLDrawable/present(at:)`` method after the command queue schedules that command buffer for execution.

---

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)