Table of Contents
-
Lessons
Let’s now test the performance of PCM using the Profiler. You’ll be testing the performance of the music alone to get the most clean and consistent results, and so you will not be using the WAG Unity project.
-
From the Layouts menu, select Designer.
-
In the Project Explorer, expand Interactive Music Hierarchy > Other > Music_DungeonAndEnemies and select the DungeonAndEnemies Music Segment.
-
In the Object Tab, select the Conversion tab.
-
In the Conversion Settings group box, click the Pop Out button next to the Music_Detailed Conversion Settings.
-
In the Conversion Settings Editor’s Format column, make sure all platforms are set to PCM.
-
Click Convert.
-
In the Audio File Conversion dialog, select your working platform and click Convert.
Let’s play the Music Segment while capturing the performance usage with the Profiler.
-
In the toolbar, click Start Capture.
Notice that the counter on the right will start to go up, and the button will be highlighted in red.
Before proceeding, go to the Transport Control and make sure Play Converted is selected. This will ensure that the converted file will be played and not the original.
-
In the Transport Control, press Play.
Let the Music Segment play until the end.
-
In the toolbar, click Stop Capture again to stop capturing.
-
From the Layouts menu, select Profiler.
-
Select the Advanced Profiler's CPU tab.
-
In the Performance Monitor, click View Settings (gear icon) and in the Show in Graph column, ensure that CPU - Plug-in Total is selected.
As the CPU usage will vary throughout the Music playthrough, you should consider dragging the Performance Monitor's time cursor to a point that represents the average CPU usage. This could be somewhere in the middle of the music playthrough where no peaks occur in the CPU - Plug-in Total.
-
In the PCM row, note down the % CPU usage.
You’ve now measured the CPU usage of PCM and for comparison you can write down your results below. The table will have grayed out areas, which represent measurements conducted at Audiokinetic. Notice that you might have slightly different results depending on your hardware specifications. The white fields are for you to complete.
PCM |
AK Estimate |
Your Estimate |
---|---|---|
% CPU |
~ 0.0394 % | |
Total Converted Size |
94.8 MB |
94.8 MB |
Vorbis |
AK Estimate |
Your Estimate |
---|---|---|
% CPU |
~ 2.0 % | |
Total Converted Size |
6.5544 MB |
6.5544 MB |