sorskoot / StreamDeck-Midi-plugin

Midi plugin for the Algato Stream Deck
MIT License
13 stars 2 forks source link

Delay on multiple key presses #12

Open Montezuma-69 opened 4 years ago

Montezuma-69 commented 4 years ago

When i press or release multiple keys at the same time, or if i press them with a very small delay (a.e. 20ms), i can recognize i bigger delay at the output (around 100ms for each button). If i press 10 keys at the same time, then the target will get the last midi command after 1 second.

If i press or release only one button, then there seems to be no delay. So i guess the delay will be produced inside a loop or counter, as long as there are still any buttons to be sent.

Montezuma-69 commented 4 years ago

Add: If i change the buttons to hotkeys or text (standard Stream Deck Plugins), then there is no delay. So i guess the delay will not be produced by the Stream Deck Software itself.

Montezuma-69 commented 4 years ago

Im starting to see your video opn youtube about it. In mypluginactions.cs you are always opening and closing the midi devices, maybe this will produce the delay. What would happen, if you try to keep the device always open?