Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

0 votes

TSet::ToArray makes heap allocations.  Given how frequently RefreshObstructionAndOcclusion is called, if (in_Listeners.Array().FindByPredicate(ListenerIDsMatch) == nullptr) is likely to put undue pressure on memory allocation.

I made a slightly different change at the top of that loop.  Would you be willing to merge it?
 

bool bFoundValid = false;
for (TWeakObjectPtr<UAkComponent> InListener : in_Listeners)
{
    if (InListener.IsValid() && InListener->GetAkGameObjectID() == Listener)
    {
       bFoundValid = true;
       break;
    }
}

if (!bFoundValid)
{
    It.RemoveCurrent();
    continue;
}
in General Discussion by Timothy F. (100 points)

1 Answer

0 votes
The Community Q&A is not the right channel to report this Timothy. Please follow the instructions found here to report a bug: https://www.audiokinetic.com/en/library/wwise_launcher/?source=InstallGuide&id=reporting_bugs.
by Guillaume R. (Audiokinetic) (5.9k points)
...