GC Alloc when playing audio via StudioEventEmitter

There is GC allocated every time we play audio via a StudioEventEmitter which comes from RuntimeManager.FindOrAddAttachedInstance. For something that is called so frequently, I would think making this not allocate would be ideal (e.g. by having a pre-allocated List instead).

We’re kind of able to work around it by inheriting from StudioEventEmitter with our own class and avoiding using the internal logic, but that seems like a bit of a shame.

Thanks for reporting this, we do have a couple of tasks to address some GC allocations in the integration that we are working on and will have out in an upcoming release.

Awesome, do you have a rough idea of when that release will be? We’re not going to production for another 12 months but just for my internal records it would be good to mark an ETA somewhere so we can remove our overrides at some point.

If all goes well, hopefully in the next version or two (of 2.03).

1 Like