Instance Method

present(at:)

Presents the drawable onscreen at a specific host time.

Required.

Declaration

func present(at presentationTime: CFTimeInterval)

Parameters

presentationTime

The Mach absolute time at which the drawable should be presented, 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 waits until all render and write requests for that drawable are complete. If they complete prior to the specified time, the drawable presents the content at that time. If the commands complete after the presentation time, the drawable presents its contents as soon as possible.

See Also

Presenting the Drawable

func present()

Presents the drawable onscreen as soon as possible.

Required.

func present(afterMinimumDuration: CFTimeInterval)

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

Required.