---
title: "present(afterMinimumDuration:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtldrawable/present(afterminimumduration:)"
---

# present(afterMinimumDuration:)

Presents the drawable onscreen as soon as possible after a previous drawable is visible for the specified duration.

## Declaration

```swift
func present(afterMinimumDuration duration: CFTimeInterval)
```

## Parameters

- `duration`: The previous drawable’s minimum display time, in seconds.

## Discussion

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 presents its contents at a future time when all render and write requests for that drawable are complete and a previous drawable has been visible onscreen for the specified duration. Use this method to schedule drawables at a regular interval. 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 present(_:afterMinimumDuration:) method instead. The present(_:afterMinimumDuration:) method is a convenience method that calls the given drawable’s present(afterMinimumDuration:) method after the command queue schedules that command buffer for execution.

## See Also

### Presenting the drawable

- [present()](metal/mtldrawable/present().md)
- [present(at:)](metal/mtldrawable/present(at:).md)
