GC Alloc in DSP.getMeteringInfo

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.

Thanks for pointing the allocation out, I can definitely see what you mean regarding the frequency the method is usually called with. I’ve added your suggestion to our internal improvement tracker.

Thanks, that would be great as we are hoping to go to production with our title before long.

1 Like