I was able to solve it, I leave the solution here in case it helps someone.
you have to edit the file:
/etc/xrdp/xrdp.ini
and you have to modify the buffer leaving it like this:
tcp_send_buffer_bytes=4194304
with this it improves a lot.
and it also helps to connect with 16-bit colors instead of 32-bit
I hope it helps you all