- Select the target platform in the Tool
- Select a shader / compute shader / material in the project view
- Click "Build Report"
- Once a report is built
- Click on "=> Excel" or "=> CSV" to generate a Excel/CSV report
Unity will open the generated report
Intermediate files are generated during the build report (compiled shader, raw performance reports, ...) in the Temp folder of the current Unity project.
These files are deleted when the Unity project is closed.
- Once a report is built
- Click on "Open Temp Dir"
- Make sur your reference folder is set (or pick one)
- Generate a performance report for your asset
- Click on "Diff with ref"
- The diff is only available if a report for the same asset GUID exist in the reference folder
Unity will perform the diff and open it in Excel
- Once a report is built and the reference folder is set
- Click on "Set as reference"
The report will be written in the reference folder with the current asset's guid
- Once a report is built
- Click on the "Open" button for the desired pass/kernel
The reports are stored in $UNITY_PROJECT/Library/ShaderPerformanceReports.
There will be a file per platform (like: AssetMetaData_PS4.asset for PS4).
This is the file to save in a SCM.
For a shader, a report will be generated for each multicompile for each pass.
For a compute shader, a report will be generated per kernel
For a material, a report will be generated for each multicompile for each pass. It wil take into account shader features, actived or disabled passes as well.