instead of flush command buffer only when command buffer is full, we
can now flush buffer if the server is a certain numbers of frame
behind client