I’m noticing that there is GC allocation when calling DSP.getMeteringInfo, as shown in the (deep) profile below:
I’ve cached the variables that I can on my side, and so the code is simply just this now:
void LateUpdate() {
m_VoiceEventInstanceDSP.getMeteringInfo(out inputInfo, IntPtr.Zero);
}
For something that is typically run frequently, it would be great if this could be made to not allocate.