Instance Method

presentDrawable:atTime:

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

Required.

Declaration

- (void)presentDrawable:(id<MTLDrawable>)drawable atTime:(CFTimeInterval)presentationTime;

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 presentAtTime: 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

- presentDrawable:

Registers a drawable presentation to occur as soon as possible.

Required.

- presentDrawable:afterMinimumDuration:

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

Required.