

UnityEngine.XR.XRSettings.renderViewportScale = 0.7f The platform will sample the lower resolution output to build a higher resolution image for rendering on displays. The final image presented on-device has a fixed resolution.

Unity provides the ability to easily modify the render target resolution of your application at runtime through the XRSettings.renderViewportScale property. In a development build, the same scopes that you see in Unity's Frame Debugger will be shown in PIX as well and can be inspected and profiled in more detail.
#UNITY 5 PALETTE SWAP SINGLE OBJECT HOW TO#
There are also detailed instructions on how to use and install PIX for HoloLens 2. PIX can be used to profile Unity applications as well. These options will enable an FPS counter and graph, respectively, that will give you immediate feedback in any running application on your device. You can enable Display frame rate counter in headset and Display frame rate graph in headset. The Device Portal System Performance page has a good summary of CPU and GPU performance of the device. These are usually added when enabling expensive rendering features (for example MSAA, HDR or full-screen effects like bloom) which should be avoided. Ideally, no off-screen render targets should be used on HoloLens.

Things to look out for are additional rendering targets and blit commands to copy between them as these are very expensive on HoloLens. It will give you a good overview of what the GPU is doing each frame. Unity's Frame Debugger is also a powerful and insightful tool to use. See Unity's GPU Usage Profiler module for more details. To use GPU profiling, you need to disable Graphics Jobs in the Unity Player Settings. This allows the developer to get a quick approximation if their application is CPU or GPU bounded. With the Unity Profiler connected and after adding the GPU profiler (see Add Profiler in top right corner), one can see how much time is being spent on the CPU & GPU respectively in the middle of the profiler.
#UNITY 5 PALETTE SWAP SINGLE OBJECT DOWNLOAD#
Download the Quality Fundamentals app Use recommended Unity project settings
