MATLAB Answers

very slow ginput() over remote X server

5 views (last 30 days)
Aaron Birenboim
Aaron Birenboim on 18 Sep 2019
Answered: Saket Chirania on 16 Dec 2020
I am running MATLAB over a remote linux login. It uses the sortware opengl renderer. ginput() is unusable. very slow and laggy.
Is there anything I can do to improve ginput() response?
Plotting and even using the editor/debugger are quite responsive over the remote connection.
This issue seems to be due to some sort of extreme inefficiency in ginput().

Answers (1)

Saket Chirania
Saket Chirania on 16 Dec 2020
Hi Aaron,
I have few suggestions which might help to you to improve the responsiveness via your remote system:
  • creating/editing the 'java.opts' file to set the following option: Dsun.java2d.pmoffscreen=false
  • Switch to VNC for the remote connection
  • Changing display from 32 bit to 16 bit color depth.
I hope some this suggestions helps to improve the responsive over the remote connection.




Community Treasure Hunt

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

Start Hunting!

Translated by