|
1 | 1 | # Using the Visual Profiler |
2 | 2 |
|
3 | | -<< >> |
| 3 | +The VisualProfiler provides an easy to use, in application view of a mixed reality application's performance. The profiler is supported on all Mixed Reality Toolkit platforms, including: |
| 4 | + |
| 5 | +- Microsoft HoloLens |
| 6 | +- Microsoft HoloLens 2 |
| 7 | +- Windows Mixed Reality Immersive headsets |
| 8 | +- OpenVR |
| 9 | + |
| 10 | +While developing an application, be sure to focus on multiple parts of the scene as the Visual Profiler displays data relative to the current view. |
| 11 | + |
| 12 | +> Focus attention on portions of the scene with complex objects, particle effects or activity. These and other factors often contribute to reduction in application performance and a less than ideal user experience. |
| 13 | +
|
| 14 | +## Visual Profiler Interface |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | +The Visual Profiler interface includes the following components: |
| 19 | + |
| 20 | +- [Frame Rate](#frame-rate) |
| 21 | +- [Frame Time](#frame-time) |
| 22 | +- [Frame Graph](#frame-graph) |
| 23 | +- [Memory Utilization](#memory-utilization) |
| 24 | + |
| 25 | +### Frame Rate |
| 26 | + |
| 27 | +In the upper left corner of the interface is the frame rate, measured in frames per second. For the best user experience and comfort, this value should be as high as possible. |
| 28 | + |
| 29 | +The specific platform and hardware configuration will play a significant role in the maximum achievable frame rate. Some common target values include: |
| 30 | + |
| 31 | +- Microsoft HoloLens: 60 |
| 32 | +- Windows Mixed Reality Ultra: 90 |
| 33 | + |
| 34 | +### Frame Time |
| 35 | + |
| 36 | +To the right of the frame rate is the frame time, in milliseconds, spent on the CPU. To achieve the target frame rates mentioned previously, an application can spend the following amount of time per frame: |
| 37 | + |
| 38 | +- 60 fps: 16.6 ms |
| 39 | +- 90 fps: 11.1 ms |
| 40 | + |
| 41 | +> GPU time is planned to be added in a future release. |
| 42 | +
|
| 43 | +### Frame Graph |
| 44 | + |
| 45 | +The frame graph provides a graphical display of the application frame rate history. |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +> When using the application, look for missed frames. Missed frames indicate the application is not hitting its target frame rate and may need optimization work. |
| 50 | +
|
| 51 | +### Memory Utilization |
| 52 | + |
| 53 | +The memory utilization display allows for easy understanding of how the current view is impacting an application's memory consumption. |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +> When using application, look for total memory usage. Key indicators include: nearing the memory limit and rapid changes in usage. |
| 58 | +
|
| 59 | +## Customizing the Visual Profiler |
| 60 | + |
| 61 | +The Visual Profiler's appearance and behavior are customizable via the diagnostics system profile. Please see [Configuring the Diagnostics System](ConfiguringDiagnostics.md) for more information. |
4 | 62 |
|
5 | 63 | ## See Also |
6 | 64 |
|
|
0 commit comments