LINUX MATLAB GUI is laggish and slowly

32 visualizaciones (últimos 30 días)
YUEQIAN
YUEQIAN el 26 de Mzo. de 2024
Comentada: YUEQIAN el 16 de Dic. de 2024
After solving the issue of black GUI tied to XQuartz follwoing this answer ( https://www.mathworks.com/matlabcentral/answers/1622355-matlab-gui-displays-black-with-xquartz#answer_1191600 ), the GUI on LINUX, however, is extremely laggish and slowly. I mean dragging the boarder of workplace is slowly responded. The coding is still fine. I am using my MacBook (M1 chip) connected remotely to my workstation via Royal TSX enabled with X11 forwarding from XQuartz. It seems that the issue is related to ssh -x and it all occurs to R2022a, R2023b, and R2024a. Emergent help!

Respuesta aceptada

Divyam
Divyam el 13 de Dic. de 2024
Since you are using an SSH connection to connect with your workstation, ensure that the network that you are using has low latency.
You could also try to compress all your data to improve the functionality over a slow network by using the "-C" flag.
ssh -X -C % https://explainshell.com/explain?cmd=ssh+-X+-C+user%40host
This laggish behavior could also be a result of X11 security extension controls and to bypass these controls, you could replace the "-X" flag in your command with the "-Y" flag. Although this leads to a less secure session, it should improve the performance of MATLAB on your remote desktop.
ssh -Y -C % https://explainshell.com/explain?cmd=ssh+-Y+-C+user%40host
I am unsure about the root cause behind this issue but as a rule of thumb, GUI applications are bound to be laggish when working on them with an SSH connection that uses a modem or a high latency network. Personally I would suggest using VNC or X2Go for remote desktop access over using X11 configuration with ssh.
To read more about the "-X" and "-Y" flags you can check out this discussion: https://unix.stackexchange.com/questions/619083/ssh-is-better-to-use-x-or-y
  3 comentarios
Divyam
Divyam el 16 de Dic. de 2024
Yes @YUEQIAN, it is not generally recommended to use X11 with large applications that involve data transfer. You can accept the answer if you found it satisfactory.
YUEQIAN
YUEQIAN el 16 de Dic. de 2024
Done, THX!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Software Development Tools en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by