Prestazioni di OpenXROpenXR performance
In HoloLens 2 sono disponibili diversi modi per inviare i dati di composizione tramite, il che può comportare un xrEndFrame
conseguente calo delle prestazioni in fase di post-elaborazione.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.
Per evitare una riduzione delle prestazioni, inviare XrCompositionProjectionLayer
un singolo con le caratteristiche seguenti:To avoid poor performance, submit a single XrCompositionProjectionLayer
with the following characteristics:
- Usare una matrice di trama presentazione catenaUse a texture array swapchain
- Usa il formato presentazione catena del colore primarioUse the primary color swapchain format
- Usare le dimensioni di visualizzazione consigliateUse the recommended view dimensions
- Non impostare il
XR_COMPOSITION_LAYER_UNPREMULTIPLIED_ALPHA_BIT
flagDon't set theXR_COMPOSITION_LAYER_UNPREMULTIPLIED_ALPHA_BIT
flag - Impostare
XrCompositionLayerDepthInfoKHR
minDepth
su 0,0 f emaxDepth
su 1,0 fSet theXrCompositionLayerDepthInfoKHR
minDepth
to 0.0f andmaxDepth
to 1.0f
Per ottenere prestazioni ottimali, prendere in considerazione quanto segue:For better performance, consider: