We have added support for multi-threading in Steam® Audio 2.0-beta.15. Along with support for Intel® Embree technology added in our previous release, speed-ups of around 20x can be achieved for calculating environmental effect when using a latest 4-core CPU. Environmental effect simulations are highly scalable in Steam Audio. For example, on a 16-core CPU, calculating environment effects will be nearly 16 times faster over using a single core. This linear scaling behavior is observed for the default Steam Audio ray tracer as well as the Intel Embree ray tracer.
For real-time environmental effects, faster simulation reduces audible latency when the source or listener moves in a virtual environment. This can significantly improve the immersive experience for a user. Environmental effects that took a few frames per second previously can now run at more than a few tens of frames per second. Environmental effects should transition more smoothly from one acoustic space to another.


Figure: (Top) Absolute time (in milliseconds) for real-time simulation of environmental effects vs. number of threads. (Bottom) Linear scaling for real-time simulation of environmental effects vs. number of threads. Simulations were performed on Intel Xeon Platinum 8124 CPU @ 3 GHz for 32K rays, 32 bounces, and 16 sources.
For baking environmental effects, faster simulation reduces turn around time for developers during the design phase. A developer does not need to wait very long for baking to complete and can iterate quickly on the environmental effects for their title. A simulation that took a few hours previously, can now be completed in just a few minutes.


Figure: (Top) Absolute time (in seconds) for baking environmental effects vs. number of threads. (Bottom) Linear scaling for baking environmental effects vs. number of threads. Simulations were performed on Intel Xeon Platinum 8124 CPU @ 3 GHz for 32K rays, 64 bounces, and 30 probes.
In Unity, the number of threads used for simulating environmental effects can be specified in the Steam Audio window. The Realtime Threads and Bake Threads settings specify the number of threads to create as a percentage of the total logical cores available on a machine. When performing real-time simulation, Steam Audio creates threads on the end user's machine during game play; when baking, Steam Audio creates threads on the developer's machine during the design phase.

Figure: Simulation Settings in the Steam Audio window in Unity, used to specify the number of logical cores for real-time simulation and baking.
