Instance Method

present(_:atTime:)

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

Required.

Declaration

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

Parameters

drawable

The drawable that you want to present.

presentationTime

The Mach absolute time at which the drawable should be presented, in seconds.

Discussion

This is a convenience method that calls the given drawable’s present(at:) method after the command queue schedules the command buffer for execution. You can’t call this method after you commit the command buffer.

See Also

Presenting a Drawable

func present(MTLDrawable)

Registers a drawable presentation to occur as soon as possible.

Required.

func present(MTLDrawable, afterMinimumDuration: CFTimeInterval)

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

Required.