OpenXR performance
On HoloLens 2, there are a number of ways to submit composition data through xrEndFrame
, which can result in post-processing and noticeable performance penalties.
To avoid poor performance, submit a single XrCompositionProjectionLayer
with the following characteristics:
- Use a texture array swapchain
- Use the primary color swapchain format
- Use the recommended view dimensions
- Don't set the
XR_COMPOSITION_LAYER_UNPREMULTIPLIED_ALPHA_BIT
flag - Set the
XrCompositionLayerDepthInfoKHR
minDepth
to 0.0f andmaxDepth
to 1.0f
For better performance, consider:
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ