Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I disable GPU rendering in Visual Studio Code

I'm with bad rendering issues... Seems that the Visual Studio Code window do not clean a screen area before redraw it. The same thing happens here with chrome browser, but in chrome I can start it with " --disable-gpu-rendering " and it goes well.

How can I disable GPU rendering in Visual Studio Code ?

I'm thinking it's a hardware specific problem, and I'm looking for a other way to solve it too.

May be useful know my hardware:

Machine: Notebook dell vostro 3500 (intel chipset) CPU: Intel i5 RAM: 8G linux kernel: 4.0 video graphics: intel i915 (latest) X -version: X.Org X Server 1.14.0 
like image 446
ton Avatar asked Apr 30 '15 11:04

ton


People also ask

How do I stop GPU rendering?

Click Start, and then click Internet Explorer. Click the Tools icon in the upper-right corner, and then click Internet Options. Click the Advanced tab, and then under Accelerated graphics, select the Use software rendering instead of GPU rendering check box. Click Apply, and then click OK.

How do you uncheck a GPU?

Follow the instruction below: Right click My Computer-> Left Click Device Manager -> Expand Display Adapters-> Double Left Click on your Graphics Card-> Click Driver then Disable.

Does Visual Studio use GPU?

Use the GPU Usage tool. When you run your app under the GPU Usage tool, Visual Studio creates a diagnostic session. This session graphs high-level information about your app's rendering performance and GPU usage in real time.

How can I make my Vscode faster?

Windows: Ctrl + Shift + P. MacOS: Command + Shift + P.


2 Answers

Note that VSCode 1.40 (Oct. 2019) proposes an alternative to the parameter/flag --disable-gpu:

Disable GPU acceleration

We have heard issue reports from users that seem related to how the GPU is used to render VS Code's UI.
These users have a much better experience when running VS Code with the additional --disable-gpu command-line argument.
Running with this argument will disable the GPU hardware acceleration and fall back to a software renderer.

To make life easier, you can add this flag as a setting so that it does not have to be passed on the command line each time.

To add this flag:

  • Open the Command Palette (Ctrl+Shift+P).
  • Run the Preferences: Configure Runtime Arguments command. This command will open a argv.json file to configure runtime arguments.
    You might see some default arguments there already.
  • Add
    "disable-hardware-acceleration": true 
  • Restart VS Code.

Note: Do not use this setting unless you are seeing issues!

like image 52
VonC Avatar answered Sep 16 '22 17:09

VonC


Under Windows, I can confirm that launching VSCode with --disable-gpu does not create a GPU process:

C:\Users\alex\AppData\Local\Code\app-0.1.0>Code.exe --disable-gpu

Perhaps the same flag works on Linux too?

like image 34
Alex Dima Avatar answered Sep 18 '22 17:09

Alex Dima