---
title: "present(_:atTime:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlcommandbuffer/present(_:attime:)"
---

# present(_:atTime:)

Presents a drawable at a specific time.

## Declaration

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

## Parameters

- `drawable`: An doc://com.apple.metal/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

Discussion This convenience method calls the drawable’s 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(_:) method for you. important: You can only call this method before calling the command buffer’s commit() method.

## See Also

### Presenting a drawable

- [present(_:)](metal/mtlcommandbuffer/present(_:).md)
- [present(_:afterMinimumDuration:)](metal/mtlcommandbuffer/present(_:afterminimumduration:).md)
