LINUX MATLAB GUI is laggish and slowly
28 次查看(过去 30 天)
显示 更早的评论
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!
0 个评论
采纳的回答
Divyam
2024-12-13
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Software Development Tools 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!