-api-id | -api-type | -api-device-family-note |
---|---|---|
M:Windows.Graphics.Holographic.HolographicFrame.PresentUsingCurrentPrediction(Windows.Graphics.Holographic.HolographicFramePresentWaitBehavior) |
winrt method |
xbox |
Presents the current frame for all cameras with the specified waiting behavior.
The wait behavior.
The result of the Present call.
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.