I don't know the answer to your problem Thomas, But, a question that comes to mind is whether you get this delay when you use the Yamorc supplied GUI to command the turnout to switch?? If there is no delay there, then clearly there is some kind of delay in communications over the API from RocRail to Yamorc - rather than some newly introduced issue on the DCC side of things.
?
From your description it does sound like a comms thing involving line end styles (CR, LF characters or some combination thereof) and that the receiving end is getting the commands but NOT seeing a valid terminator for each one. In such a case? commands will accumulate in a receive buffer and the receiver might only action them when the buffer overflows. If you can find configuration variable on both sides and see if you can play around with the line-end styles (typically CR+LF or just CR or sometimes NUL characters are used as line ends) you might get to a fix for this.