Lesson 7

Table of Contents

Using Memory Pools

For games like WAG where memory is frequently loaded and unloaded, the memory pool usage will change throughout gameplay. As such, you should always complete the game when you have finalized your AkInitializer settings. For WAG, here are our complete memory pool estimates:

 

Estimate (Audiokinetic)

Estimate (You)

Default Pool

1.1 MB (Set to 1.4 MB)

Mobile: 1.0 MB (Set to 1.25 MB)

Lower Engine Default

5.3 MB (Set to 6.6 MB)

Mobile: 5.9 MB (Set to 7.4 MB)

Streaming

20 KB (Set to 100)

Monitor

15 KB (Set to 100)

Monitor Queue

4 MB (Set to 4,096)

Memory Cutoff Threshold

Set to 0.9 (90%)

In development, leave the memory pools at a fairly high value and when you’re making the game ready for release, revisit these settings and squeeze the memory to its minimum. Then when evaluating your settings, look for starvation or insufficiency errors that indicate whether the system is running out of resources.


Was this page helpful?