Midi timing problem

Same issue. My fix was having only one device active in MIDI port setup. The one using DirectMusic. Make the others inactive. Also, place check mark on Use Device ‘DirectMusic’ and Use System Timestamp for ‘DirectMusic’. Hope it helps, good luck!