WebGL is slow in snap package
See original GitHub issue- VS Code Version: 1.55.1, 1.56.0-insider
- OS Version: Ubuntu 20.10
I often need to print a table (or data frame) in R in the integrated terminal via remote ssh like the following. In previous versions, the printing is almost as fast as in the native console.
In the recent release, the terminal becomes quite laggy to print such table via remote ssh in the integrated terminal. It looks like the printing is sent line by line. If I print the table in a tmux window, it becomes much worse, i.e. printing such a table which previously took less than 0.5s now takes more than 20s while in the middle the remote ssh connection becomes unstable sometimes.
To narrow down the problem, I tried the following:
- Locally, printing the table in and out of tmux is very fast.
- In a local vscode, open the integrated terminal and ssh to the server, start R, and print
mtcars
. It is very fast too but sometimes it becomes slow in tmux. - Use remote ssh to connect to the server. Open the integrated terminal and start R and print
mtcars
. It is fast. But in tmux to do the same, it is very laggy, i.e. the printing is almost done line by line.
To reproduce my steps, run
sudo apt install r-base
tmux
Rscript -e 'print(mtcars)'
However, put the output into a text file and cat
the file, it is not laggy.
Rscript -e 'print(mtcars)' > mtcars.txt
cat mtcars.txt
The typing in the integrated terminal is laggy too. In current release (1.55.1), I need to switch to "terminal.integrated.rendererType": "canvas"
so that typing is no longer laggy. In current insider, the setting is gone, and I have to use "terminal.integrated.gpuAcceleration": "off"
and the laggy typing is fixed. However, in both cases, while the laggy typing is fixed, the laggy printing via remote ssh still persists.
Does this issue occur when all extensions are disabled?: Yes
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top GitHub Comments
It seems the WebGL renderer is slow under Electron 12 only in the snap package. Workarounds:
"terminal.integrated.gpuAcceleration": "off"
snap connections firefox
will show that it is connected to opengl samesnap connections chromium
will show it is connected to openglsnap connections code
has no connection (means it is not allowed to any outside thing).Publishing a snap with
--classic
does not means it will allow the snap to bypass all security measures.Code snap needs some extra connections so would benefit for many extras as expected.
The chromium snap might give a hint (everything is automated when installing it).