Contents

presentationFrameIndex

The sequential index of a drawable’s frame.

Declaration

var presentationFrameIndex: CompositorFrameIndex { get }

Discussion

When your immersive space becomes visible, you start drawing frames of content. Compositor Services assigns a sequential index to each frame to indicate its position in the final output. You can use these indexes to differentiate frames during drawing or predict future frame indexes. For example, you might start playback of an audio file when a specific frame appears.

See Also

Synchronizing the drawing operation