Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

0 votes
Hi

On a couple of games we have found that the AkComponent.cpp ObstructionService causes terrible performance across all platforms due to massive amounts of raycasts (FAsyncTraceTask goes mad)

Changing the raycast settings etc, even "disabling" occlusion in the wwise settings in UE4 does not fix or alleviate the performance issue

The only way to fix the performance issues is by hardcoding the OcclusionRefreshInterval to 0.0 so it skips it entirely

Is this a known issue? Any suggestions?

Thanks

Rich
in General Discussion by Richard Y. (100 points)
Hello. Could you tell me how did you solve this problem?

1 Answer

0 votes
Hi Rich,

First, a clarification. The Unreal Wwise Integration casts rays using the unreal physics engine to drive the occlusion API in Wwise.  The sound engine is then presented with the results (a number between 0-1, indicating how occluded a sound is). The ObstructionService on the Unreal side is generally seperate from Wwise Spatial Audio. This system predates Spatial Audio diffraction, and is generally (at least without a bit of hacking) not compatible with the diffraction system.

If you are looking to get better performance out of the ray casts in unreal, it might be best to do a bit of digging into the Unreal docs (or maybe someone more knowledgeable in this area can chime in). I suspect it would start with reviewing your collision channels, and the complexity of the collision geometry.

The only control in the Wwise Integration is OcclusionRefreshInterval, which can be set to a larger number to reduce the frequency of the ray casts.

Hope that helps,

Nate
by Nathan H. (840 points)
...