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.

AkComponents with bAutoDestroy will not auto destroy if their event has been posted via AkAudioEvent::PostOnComponent

+2 votes

We have noticed within Wwise 2022.1.1, it seems, that when calling UAkAudioEvent::PostOnComponent, UAkComponent::bStarted does not get set to true. This means within UAkComponent::TickComponent the conditions for calling DestroyComponent() will never be met.


    if (!HasActiveEvents() && bAutoDestroy && bStarted)


This can result in a lot of components persisting when they shouldn't, which eventually leads to a large ticking overhead.

It's possible to modify  UAkAudioEvent::PostOnGameObject to set started to true, as follows.

    const AkPlayingID PlayingID = PostOnGameObjectID(GameObjectID, Delegate, Callback, Cookie, CallbackMask, LatentAction, AudioContext);
    if (PlayingID != AK_INVALID_PLAYING_ID)
    return PlayingID;


Is this a known issue?


asked Jan 31, 2023 in General Discussion by Robin F. (210 points)
edited Feb 1, 2023 by Robin F.

Please sign-in or register to answer this question.