You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Start VSCode. This can be when docked in Launcher or launched via GUI or launched from command line
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
Reacted by Oswald Maskens, CoenraadS, Xarkam, Fausto German, Saravana J, Meet Shah , Henry Moreno, Andrey Matos, Zhen Zhong, Andrii Doroshenko and 60 more
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.
Reacted by Benjamin Pasero, Fausto German, Mason, Scott Willeke, Elijah Shackelford, Saran Tanpituckpong ✔️, diazdc, Nathan Devey, mohammadreza berneti and Brais Cao
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?
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?
Reacted by Scott Willeke, James Allen and Ibrahim Beladi
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.
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.
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.
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.
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.
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.
Activity
SpaceShot commentedon Nov 8, 2016
Forgot VS Code version (sorry). -fixed-
bpasero commentedon Nov 9, 2016
Chris Gomez (@SpaceShot) are you saying that you see the first window with GPU disabled but subsequent windows are not?
bpasero commentedon Nov 9, 2016
There is
app.disableHardwareAcceleration, but it needs to be set very early.SpaceShot commentedon Nov 10, 2016
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-gpuAs 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-gpuoption.I simply was adding more information that I tried a few things, such as opening with
--disable-gpuand then seeing what happened if I opened more windows.[-]Disable gpu setting in user settings[/-][+]Add a setting to disable gpu acceleration[/+]billscheidel commentedon Dec 10, 2016
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?
faustogerman commentedon Sep 19, 2017
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?
79 remaining items
bpasero commentedon Oct 9, 2019
Current idea (and pushed): have a new
%user.home%/.vscode/argv.jsonfile that allows to configure static arguments.Contents:

Getting There:

We will probably add more values as default there. Possibly also the language configuration which currently resides in a
locale.jsonfile.Feedback welcome.
miketemby commentedon Oct 10, 2019
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.
bpasero commentedon Oct 10, 2019
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.
miketemby commentedon Oct 10, 2019
Fair enough. I'm happy either way. cheers.
improve static argv configuration (#15211)
usernamehw commentedon Oct 12, 2019
Benjamin Pasero (@bpasero) Why is it so limiting? I thought it would be possible to add any arguments like
--enable-proposed-apior--disable-smooth-scrollingbut they do not work.bpasero commentedon Oct 14, 2019
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.
mlindner commentedon Oct 17, 2019
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.
aaomidi commentedon Oct 29, 2019
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.
bpasero commentedon Oct 30, 2019
Amir Omidi (@aaomidi) what exactly do you want to disable?