Skip to content

Instantly share code, notes, and snippets.

@andriyudatama
Last active October 31, 2025 13:01
Show Gist options
  • Save andriyudatama/fe5d00deb36feeea30ef35a5ea0f7eff to your computer and use it in GitHub Desktop.
Save andriyudatama/fe5d00deb36feeea30ef35a5ea0f7eff to your computer and use it in GitHub Desktop.
Disable Hardware Acceleration (GPU) on Visual Studio Code
Visual Studio Code frequently crashes linux. Using NVIDIA GPU
1. Open command pallete (Ctrl + Shift + P)
2. Enter "Preferences: Configure Runtime Arguments"
3. Add config: "disable-hardware-acceleration": true
4. Restart VS Code
@EmmaIsaac
Copy link

Muchas gracias. Lo probe en hackintosh, porque tardaba mucho en iniciar vscode y ahora inicia super rapido

@oblx
Copy link

oblx commented Oct 28, 2024

What is this sorcery, my vscode booted faster than ever !

@Sodiumchloridy
Copy link

Thank you sir in 2025, I hope both sides of your pillow are cool.

@Julianioorio
Copy link

thx in 2025

@mariolando
Copy link

Thank you saved me in 2025

@ntonjeta
Copy link

ntonjeta commented Apr 4, 2025

thanks

@datprs2k1
Copy link

Thanks

@Wayne6530
Copy link

Thanks!

After Ubuntu 24.04.3 forced an NVIDIA driver upgrade to 580, VS Code became invisible on Wayland (worked fine with 550). Since I need fractional scaling on my 4K screen, X11 isn’t an option—it’s blurry.

Launching with code --disable-gpu fixes the issue: VS Code shows up properly on Wayland and stays sharp. Hope this helps others!

@ahakkar
Copy link

ahakkar commented Oct 31, 2025

"disable-hardware-acceleration": true

Seems to still work. Am am using 1.94.2 since I do not need the new chat features provided by newer builds. This on 25H2 and 5090, so not limited to Linux it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment