Lesson 2

Table of Contents

PCM Resource Usage

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.

  1. From the Layouts menu, select Interactive Music.

  2. In the Project Explorer, expand Interactive Music Hierarchy > Other > Music_DungeonAndEnemies Music Playlist and select the DungeonAndEnemies Music Segment.

  3. In the Property Editor, select the Conversion tab.

  4. In the Conversion Settings group box, select Edit….

  5. In the Conversion Settings Editor’s Format column, make sure all platforms are set to PCM.

  6. Click Convert.

  7. In the Audio File Conversion dialog, select your working platform and press OK.

    Let’s play the Music Segment while capturing the performance usage with the Profiler.

  8. 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 the the Original toggle is deselected. This will ensure that the converted file will be played and not the original.

  9. In the Transport Control, press Play.

    Let the Music Segment play until the end.

  10. In the toolbar, click Stop Capture to stop capturing.

  11. From the Layouts menu, select Profiler.

  12. Select the Advanced Profiler's Plug-ins tab.

    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.

  13. 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.0478 %

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


Was this page helpful?