Search Unity

Other PSA: Disable GPU acceleration in VS Code.

Discussion in 'Code Editors & IDEs' started by JohnnyFactor, Mar 22, 2022.

  1. JohnnyFactor

    JohnnyFactor

    Joined:
    May 18, 2018
    Posts:
    343
    Like most programs, VS Code uses GPU acceleration for the UI for a smoother experience. Unfortunately, this is a disadvantage for Unity devs because we need all the GPU power and memory we can get for the editor.

    The steps below will disable GPU acceleration in VS Code and revert it back to software rendering. I have found quick scrolling to be not quite as smooth but VRAM usage dropped about 400MB, and it's one less process competing for GPU resources. I haven't had any issues but always be mindful when making changes like this.

    1. Press Ctrl+Shift+P to open the Command Palette.

    2. Type Preferences: Configure Runtime Arguments in the dropdown box and press enter.

    3. In the argv.json file that opened, add this line. It may already exist so check for it first.

    "disable-hardware-acceleration": true,

    4. Ctrl+S to save the file, then close and re-open VS Code.