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
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.
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.
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.
Windows: Ctrl + Shift + P. MacOS: Command + Shift + P.
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 aargv.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!
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With