Instance Method

present(_:afterMinimumDuration:)

Registers a drawable presentation to occur after waiting for the previous drawable to meet the minimum display time.

Required.

Declaration

func present(_ drawable: MTLDrawable, afterMinimumDuration duration: CFTimeInterval)

Parameters

drawable

The drawable that you want to present.

duration

The previous drawable's minimum display time, in seconds.

Discussion

This is a convenience method that calls the given drawable's present(afterMinimumDuration:) method from a handler scheduled using the command buffer's addScheduledHandler(_:) callback.

See Also

Presenting a Drawable

func present(MTLDrawable)

Registers a drawable presentation to occur as soon as possible.

Required.

func present(MTLDrawable, atTime: CFTimeInterval)

Registers a drawable presentation to occur at a specific host time.

Required.