Pause in audio when switching windows

When I click from one window to another (midi editor → project arranger) there is a short gap in the music played if playing back while doing this. The same occurs when highlighting a track. This is all specific to a projects with loads of midi tracks, VST instruments and audio tracks.

Anyone experiencing the same? Is this a bug?