Skip to content

Add a setting to disable gpu acceleration #15211

Closed

Description

@SpaceShot
  • VSCode Version: 1.7.1-1478180561
  • OS Version: ubuntu 16.04 LTS
    more info:
    Guest OS using VM on VirtualBox 5.0.26,
    Guest Additions installed,
    unity_support_test reports Unity 3D supported = yes (everything is lit up with green yes)

Steps to Reproduce:

  1. Start VSCode. This can be when docked in Launcher or launched via GUI or launched from command line
  2. Window appears, screen stays black. There might be grey rectangles or a blinking cursor, moving the window usually results in tearing.

Workaround
Launch from command line with code . --disable-gpu
If first window is launched this way, subsequent windows launched by any method follow option of currently open window(s)

Proposed Workaround
Once I identify that this machine can't run VSCode effectively without --disable-gpu, can we have a way to add to settings.json and be done with it?

Thank you for consideration

Activity

  1. SpaceShot commented on Nov 8, 2016

    @SpaceShot
    Author

    Forgot VS Code version (sorry). -fixed-

  2. bpasero commented on Nov 9, 2016

    @bpasero
    Contributor

    Chris Gomez (@SpaceShot) are you saying that you see the first window with GPU disabled but subsequent windows are not?

  3. added
    info-needed
    on Nov 9, 2016
  4. bpasero commented on Nov 9, 2016

    @bpasero
    Contributor

    There is app.disableHardwareAcceleration, but it needs to be set very early.

  5. SpaceShot commented on Nov 10, 2016

    @SpaceShot
    Author

    My proposal is that it would be nice to not have to set this every time from the command line because I know for this configuration (OS and guest VM) I have to run with --disable-gpu

    As a minor complaint, this also means docking Code in the launcher is somewhat pointless because I need to go to terminal and use the --disable-gpu option.

    I simply was adding more information that I tried a few things, such as opening with --disable-gpu and then seeing what happened if I opened more windows.

  6. changed the title [-]Disable gpu setting in user settings[/-] [+]Add a setting to disable gpu acceleration[/+] on Nov 11, 2016
  7. added
    feature-request
    on Nov 11, 2016
  8. removed this from the Backlog milestone on Nov 11, 2016
  9. removed
    info-needed
    on Nov 11, 2016
  10. billscheidel commented on Dec 10, 2016

    @billscheidel

    I have the same configuration and disabled the gpu in a similar manner. But now I'm seeing really bad screen tearing on scroll. Basically every time I scroll, I need to stop scrolling then scroll a little bit up or down to refresh the ui and fix the issue. Is there any way to fix this?

  11. faustogerman commented on Sep 19, 2017

    @faustogerman

    I'm having to do the same. Otherwise, VSCode won't respond until 0.6/2 seconds after performing any action like typing, scrolling or even opening small files (20 - 40 lines).

    I know that opening the terminal, typing code --disable-gpu, and pressing enter seems like a really small set of steps, but when you have to do it every day, you realize that those steps are way more than just clicking on the app's icon to launch it.

    Is there any chance that this option will be added to the settings?

  12. 79 remaining items

  13. bpasero commented on Oct 9, 2019

    @bpasero
    Contributor

    Current idea (and pushed): have a new %user.home%/.vscode/argv.json file that allows to configure static arguments.

    Contents:
    image

    Getting There:
    image

    We will probably add more values as default there. Possibly also the language configuration which currently resides in a locale.json file.

    Feedback welcome.

  14. miketemby commented on Oct 10, 2019

    @miketemby

    Benjamin Pasero (@bpasero) Excellent that this is getting addressed!!!

    feedback:
    Is there potential to just add this as an option within Preferences > Settings so users can just switch on or off GPU acceleration without needing to modify a JSON file?
    Might be easier for users that are not so technically skilled.

  15. bpasero commented on Oct 10, 2019

    @bpasero
    Contributor

    Mike Temby (@miketemby) since extensions can change settings programmatically and this can have quite an impact, it feels wrong to have it in a place that is not 100% under the control of the user.

  16. miketemby commented on Oct 10, 2019

    @miketemby

    Mike Temby (@miketemby) since extensions can change settings programmatically and this can have quite an impact, it feels wrong to have it in a place that is not 100% under the control of the user.

    Fair enough. I'm happy either way. cheers.

  17. usernamehw commented on Oct 12, 2019

    @usernamehw
    Contributor

    Benjamin Pasero (@bpasero) Why is it so limiting? I thought it would be possible to add any arguments like --enable-proposed-api or --disable-smooth-scrolling but they do not work.

  18. bpasero commented on Oct 14, 2019

    @bpasero
    Contributor

    Alexander (@usernamehw) first of all, not all Chrome command line switches can be set that late. Many of the GPU related switches will only work if you configure them on the command line so that Chrome gets them very early. Setting them within our code is often too late.

    I also think we should be careful with what we want to support from this file. I am open to adding more things to the file on a case by case basis if it makes sense and a lot of people would benefit from it.

  19. mlindner commented on Oct 17, 2019

    @mlindner

    Is there a similar issue created for Microsoft Teams? Teams has the same issue. This seems like a base Microsoft library issue rather than an issue specific to VSCode.

  20. aaomidi commented on Oct 29, 2019

    @aaomidi

    What if I want to disable it with a command line switch? Is that possible? For example if I'm doing some testing in CI.

  21. bpasero commented on Oct 30, 2019

    @bpasero
    Contributor

    Amir Omidi (@aaomidi) what exactly do you want to disable?

  22. locked and limited conversation to collaborators on Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requeston-testplanworkbench-electron

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions