vscode: Integrated terminal poor performance and freezing
- VSCode Version:
Version: 1.25.0
Commit: 0f080e5267e829de46638128001aeb7ca2d6d50e
Date: 2018-07-05T13:11:58.697Z
Electron: 1.7.12
Chrome: 58.0.3029.110
Node.js: 7.9.0
V8: 5.8.283.38
Architecture: x64
Version: 1.26.0-insider
Commit: bd953248ad6a8e2f8896bfb78b3ae40e0fd47426
Date: 2018-07-06T05:17:37.386Z
Electron: 1.7.12
Chrome: 58.0.3029.110
Node.js: 7.9.0
V8: 5.8.283.38
Architecture: x64
- OS Version: Windows 10 & Ubuntu 18.04
Steps to Reproduce:
- Open the integrated terminal
- Maximize the terminal
- Start trying to type commands
Does this issue occur when all extensions are disabled?: Yes
The integrated terminal is freezing constantly and sometimes causing VS Code to take over 8GB of RAM and causing my entire system to become sluggish. I’ve seen this issue reported and claiming that version 1.24 would fix this but it hasn’t and now those threads have all been locked. #36913 #47196 #46954
On the insiders version it seems to at least only freeze the terminal window itself, but this has basically made the terminal unusable for me. 🙁
I’d also like to note that keeping the terminal small minimizes the performance impact but is still noticeably sluggish
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 14
- Comments: 42 (9 by maintainers)
Well it’s definitely looking like it’s a 4K monitor problem, I’ll see if I can get my hands on one
I have been experiencing this since upgrading to 1.24 and still having it at 1.25:1 (upgraded on July 11, 2018). None of the previously recommended fixes solved this problem.
code --status
I’m also having this issue on a new Dell XPS laptop I got yesterday. I wanted to share that downgrading my laptop’s resolution from 4K to 1080p solves the slugginesh / crashing completely, but it looks less sharp, so I wish there was another solution.
I tried changing the renderer type to
dom
, which does help diminish the crashes, but the response time when typing is much slower.Thanks @Tyriar, this works for me. Changing
terminal.integrated.rendererType
back tocanvas
now makes the Terminal as fast as before. 👍For what it’s worth I also experience sudden performance drop after a while when using integrated terminal on my Dell XPS 15 9560 w/ 4K display. Most noticed when using Powershell integrated terminal from the extention (probably because it’s the one I use the most on daily basis). I’ve noticed that when having just vscode and chrome open, when it suddenly starts lagging Chrome lags as well with the scrolling. Closing both apps and reopening Chrome make scroll smooth again. Both my GPU drivers are up to date with latest from Intel and nvidia. After reading this https://communities.intel.com/thread/119093 I’ve tryed disabling the nvidia GPU to prevent the current discret GPU issue, it seems to be less sensitive to falling in lag state. Not a solution though…
Another workaround that may work:
code --ignore-gpu-blacklist
That seems to have stopped it from crashing @Tyriar, but rendering is now quite slow. I’ve never had to do this with previous version of VS Code FWIW.
I will try using the DOM renderer once I get back home. However, I do know that I am using the latest graphics drivers available from Nvidia.
I haven’t updated my drivers in a while, so I’ll give that a shot.
--disable-gpu
seemed to make it better so I guess it’s that.