Make MIDI update rate comically low (#4830)

Was around this before but apparently avoiding lock contention not hard enough.
This commit is contained in:
metalgearsloth
2024-01-14 18:19:56 +11:00
committed by GitHub
parent 3681b7f0d5
commit 448ce94b35

View File

@@ -72,7 +72,7 @@ internal sealed partial class MidiManager : IMidiManager
// To avoid lock contention until some kind of MIDI refactor.
private TimeSpan _nextUpdate;
private TimeSpan _updateFrequency = TimeSpan.FromSeconds(0.1f);
private TimeSpan _updateFrequency = TimeSpan.FromSeconds(0.25f);
private SemaphoreSlim _updateSemaphore = new(1);