Please describe how to reproduce the problem, so that it can be investigated.
I have years with this issue but I discovered that is produced in midi spells that's uses bassinet in realtime mode.
Playing in realtime mode (midi player, midi driver as cool soft)
The performace is affected by any app. Like Windows update, Windows defender when access to folders, when run app (user accounts control dim screen), Windows 7 basic theme. Even with cpu stay under 40% usage, also when no lags kicks and snare seems as when you open mp3 and reduces 0.5 to key/tone on vlc or wmp. Standard is not affected never with this issue
In fluidsynth (synthfont) is only when cpu is saturated, but when cpu is not saturated play same as bassmidi (standard mode) and is affected causing problems similar when lactency is very low in bad audio card. Bassmidi performance in realtime is not like to be as standard