Manuel Bauer

Visual Studio Code: Improve editor performance on Macbooks with dedicated Nvidia graphics

VSCode-nvidia-logo

It seems that Visual Studio Code (and maybe other Electron based applications) have problems with the dedicated Nvidia graphics. Tab switching and general editing performance is very laggy (especially it is "just" a text editor 🙈).

Specs of the Macbook with that problem:

MacBook Pro (Retina, 15", Late 2013)
Intel Iris Pro
NVIDIA GeForce GT 750M

A way to solve this problem is to start the editor without GPU acceleration:

 open -a Visual\ Studio\ Code --args --disable-gpu

With this parameter the editor gains a lot of performance back.

Sadly there is till today no option inside VS Code to disable GPU acceleration as default. (But there is a open Github issue: https://github.com/Microsoft/vscode/issues/15211 😉).