-
Notifications
You must be signed in to change notification settings - Fork 109
Description
I've been doing some profiling for some CPU overload during performance and found that this plugin is causing a CPU spike and bottleneck whenever there is a steady MIDI CC, like an auto-knob fade.

The steady stream of CC messages comes from a DAW or Midi controller (pictured: Ableton) when there is a ramp used such as this:

A slower staircase ramp of Midi CC, like the following screenshot, removes the performance hit and MIDIJack CPU usage drops.

I've tried different workflows and approaches and refactoring my code, debouncing the CC messages going out, but I'm hitting a wall.
I'm wondering if you can recommend a way to debounce the incoming CC messages within MidiJack. I've tried a few hacks but I'm not having luck - there's still a heavy hit to the CPU during a knob fade. ( unless the Update() _callback is commented out of MidiStateUpdater.cs )