Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.51 KB

holographicframe_presentusingcurrentprediction_19613915.md

File metadata and controls

31 lines (22 loc) · 1.51 KB
-api-id -api-type -api-device-family-note
M:Windows.Graphics.Holographic.HolographicFrame.PresentUsingCurrentPrediction(Windows.Graphics.Holographic.HolographicFramePresentWaitBehavior)
winrt method
xbox

Windows.Graphics.Holographic.HolographicFrame.PresentUsingCurrentPrediction

-description

Presents the current frame for all cameras with the specified waiting behavior.

-parameters

-param waitBehavior

The wait behavior.

-returns

The result of the Present call.

-remarks

Except for very simple apps, you should generally pass in a waitBehavior of DoNotWaitForFrameToFinish. You can then call HolographicSpace.WaitForNextFrameReady or HolographicSpace.WaitForNextFrameReadyWithHeadStart manually, which allows your app's CPU and GPU work to overlap across consecutive frames.

This method will make use of the Direct3D device you provided to the HolographicSpace. If you've specified the D3D11_CREATE_DEVICE_SINGLETHREADED flag on your device, be sure to call this method from your single Direct3D thread to avoid undefined behavior.

-examples

-see-also

PresentUsingCurrentPrediction