<!--
{
  "availability" : [
    "iOS: 10.3.0 -",
    "iPadOS: 10.3.0 -",
    "macCatalyst: 13.4.0 -",
    "macOS: 10.15.4 -",
    "tvOS: 10.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLDrawable/present(afterMinimumDuration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLDrawable(im)presentAfterMinimumDuration:"
  },
  "title" : "present(afterMinimumDuration:)"
}
-->

# present(afterMinimumDuration:)

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

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

## Parameters

`duration`

The previous drawable’s minimum display time, 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 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 ``doc://com.apple.metal/documentation/Metal/MTLCommandBuffer/present(_:afterMinimumDuration:)`` method instead. The ``doc://com.apple.metal/documentation/Metal/MTLCommandBuffer/present(_:afterMinimumDuration:)`` method is a convenience method that calls the given drawable’s ``doc://com.apple.metal/documentation/Metal/MTLDrawable/present(afterMinimumDuration:)`` 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)