<!--
{
  "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/MTLCommandBuffer/present(_:atTime:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLCommandBuffer(im)presentDrawable:atTime:"
  },
  "title" : "present(_:atTime:)"
}
-->

# present(_:atTime:)

Presents a drawable at a specific time.

```
func present(_ drawable: any MTLDrawable, atTime presentationTime: CFTimeInterval)
```

## Parameters

`drawable`

An [`MTLDrawable`](/documentation/Metal/MTLDrawable) instance that contains a texture the system can show on a display.

`presentationTime`

The Mach absolute time, in seconds, that you want to present the drawable.

## Discussion

This convenience method calls the drawable’s [`present(at:)`](/documentation/Metal/MTLDrawable/present(at:)) method after the command queue schedules the command buffer for execution. The command buffer does this by adding a completion handler by calling its own [`addScheduledHandler(_:)`](/documentation/Metal/MTLCommandBuffer/addScheduledHandler(_:)) method for you.

> Important:
> You can only call this method before calling the command buffer’s ``doc://com.apple.metal/documentation/Metal/MTLCommandBuffer/commit()`` method.

---

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)