Profiling Games built with Unity* (NEW)
- Slow transfer of data to the GPU
- Slow or unnecessary operations
- Poor parallelism
- Tools:Intel® VTune™version 2022 - Hotspots Analysis (using User-Mode Sampling)Profiler
- Starting with the 2020 release, Intel® VTune™ Amplifier has been renamed toIntel® VTune™.Profiler
- Most recipes in theIntel® VTune™Performance Analysis Cookbook are flexible. You can apply them to different versions ofProfilerIntel® VTune™. In some cases, minor adjustments may be required.Profiler
- CPU/GPU: Intel® Core™ i7-8665U CPU @ 1.90GHz with integrated GPU
- Operating system: Windows* 10 Enterprise
Build the Game in the Unity Editor
- Open the game in the Unity editor.
- Build the game. Make sure to select theCopy PDB FilesandDevelopment Buildoptions.
Profiler and Run Hotspots Analysis
- OpenIntel® VTune™and clickProfilerNew Projecton the Welcome screen.
- Specify a project name and a location for your project.
- ClickCreate Project.
- In theConfigure Analysiswindow, set these options:
- In theWHEREpane, selectLocal Host.
- In theApplicationfield of theWHATpane, enter the path to the game executable.
- In theApplication parametersfield, enter-profiler-enable-vtune-markers.
- (Optional) If you want to skip profiling the start/loading phase of the game,
- In theWHATpane, open theAdvancedsection.
- SetAutomatically resume collection afterto the number of seconds thatIntel® VTune™should wait for profiling to begin.Profiler
- In theHOWpane, select theHotspots analysis typeand enable user-mode sampling.
- ClickStartto run the analysis.
- Elapsed time
- Top hotspots
- Top Unity tasks
- Additional insights and guidance