If you don’t send CP command quickly enough, then the Dobot controller may think there are no commands, and starts to deaccelerate. The queued command buffer length is 32, so in fact you can do in this way,
SetQueuedCmdStopExec();
moveCP();
moveCP();
moveCP();
moveCP();
...
SetQueuedCmdStartExec();
moveCP();
moveCP();
moveCP();
That is to say, you can send some command before start the command execution.