Instance Method

present(afterMinimumDuration:)

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

Required.

Declaration

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.

See Also

Presenting the Drawable

func present()

Presents the drawable onscreen as soon as possible.

Required.

func present(at: CFTimeInterval)

Presents the drawable onscreen at a specific host time.

Required.