Performance Tips

From WikiHolo
Jump to: navigation, search

Models

Poly Count

Users are reporting in the forums (2016-04-28) that 68k polys are too high. Testing needs to be done to determine recommended poly counts and note them here.

Shadows

Avoid, when possible, any type of shadow (cast and/or receive). Shadow calculation is very processor intensive, and might have a high impact on your rendering FPS.


Shaders

Standard Shader

Unity's "Standard Shader" is actually a quite expensive shader and most times overkill for holograms. The HoloToolkit includes a Shaders folder that offers several alternatives that are less costly to use.


Writing Custom Shaders

The Performance Recommendations page offers plenty of guidance for creating custom shaders. One of the most important and unexpected recommendations is using 16-bit floating point operations (min16float) instead of 32-bit. Check the article for other great recommendations.


Microsoft Resources for Optimization

Recommended pages to review on MSDN:

Here are a few key excerpts from those pages:

Graphics Debugger

The Visual Studio Graphics Diagnostics tools are very helpful when writing and optimizing a Holographic app. See Visual Studio Graphics Diagnostics on MSDN for full details.

To Start the Graphics Debugger with HoloLens

  1. Follow the instructions above to target a HoloLens device or emulator
  2. Go to Debug > Graphics > Start Diagnostics
  3. The first time you do this, you may get an "access denied" error. Reboot your HoloLens to allow updated permissions to take effect and try again.

Profiling

The Visual Studio profiling tools allow you to analyze your app's performance and resource use. This includes tools to optimize CPU, memory, graphics, and network use. See Run diagnostic tools without debugging on MSDN for full details.

To Start the Profiling Tools with HoloLens

  1. Follow the instructions above to target a HoloLens device or emulator
  2. Go to Debug > Start Diagnostic Tools Without Debugging...
  3. Select the tools you want to use
  4. Click Start
  5. The first time you do this, you may get an "access denied" error. Reboot your HoloLens to allow updated permissions to take effect and try again.