-
I dont know how to demonstrate this issue |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Yes, your observation is definitely valid and I experience such problem too. I guess it must be caused by that too many svg elements in a WebView will cause VS Code to render slowly and user interaction with UI and terminal will become sluggish. @nx10, do you think if there is anything we could do about it? |
Beta Was this translation helpful? Give feedback.
-
This seems to be a client issue. When I run this code in the vscode-r viewer the UI becommes laggy: mat <- matrix(rnorm(30*200), nrow=30)
heatmap(mat) However when it is closed and I open the httpgd client with e.g. The vscode-r viewer actually handles plots a bit differently and will load and append the SVG element directly to the editor DOM which might be the cause for the performance issues. @ManuelHentschel what do you think would be the best way to fix this? |
Beta Was this translation helpful? Give feedback.
This seems to be a client issue. When I run this code in the vscode-r viewer the UI becommes laggy:
However when it is closed and I open the httpgd client with e.g.
httpgd::hgd_view()
it runs smoothly.The vscode-r viewer actually handles plots a bit differently and will load and append the SVG element directly to the editor DOM which might be the cause for the performance issues. @ManuelHentschel what do you think would be the best way to fix this?