I was getting the same in some, not all of my current projects. Some projects would be fine and others would exhibit this half second delay when playing with my MIDI keyboard, and only after upgrading to X2a.
Fixed it, but I cannot say how. I was changing all sorts of buffer settings and stuff. Might have been because I had turned off, then on, an effect or two, but the delay appears to have gone, in all projects.
Very weird...