New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Electron 7, disable-gpu flag no longer working #20702
Comments
|
I believe that something like this broke in Electron 5 and I had to do the following to work around this (not tested in Electron 7): |
|
Related issue here. Suggests adding the "in-process-gpu" switch. This does prevent the GPU process from starting, but the chrome://gpu page is a lot greener than I expected with all three options ( This is also a problem in Electron 8. |
|
Actually the green stuff makes sense, I just didn't understand what |
|
Did some more investigation. Passing the Passing these switches via The Chromium version between the two Electron versions changed from 76.0.3809.146 to 78.0.3866.0. Maybe something in Chromium broke this. When loading chrome://gpu in Electron 6 vs 7beta: |
|
It looks like as of Electron 9: successfully prevent the GPU process from spawning. Could someone double check this? The |
|
Hi team, Any update on this, It is also not working in electron 8.x |
|
The flag seems to be working again, |
|
@t57ser For me, it that switch still doesn't turn off the GPU process in Electron 11. |
|
@pushkin- That's weird, this is the code I tried: I see that no gpu process spawned. |
|
The Electron version reported on this issue is no longer supported. See our supported versions documentation. If this is still reproducible on a supported version, please open a new issue with any other new information that a maintainer should know. Thank you for taking the time to report this issue and helping to make Electron better! Your help is appreciated. |
|
follow here for updates |

Issue Details
Expected Behavior
GPU should be disabled and the chrome window should have no "Intermediate D3D Window" child
Actual Behavior
GPU is enabled
To Reproduce
app.commandLine.appendSwitch("disable-gpu");
Additional Information
It works when using app.disableHardwareAcceleration() but that has a different effect. See:
Electron 7 with app.disableHardwareAcceleration():
Electron 6 with disable-gpu:
The text was updated successfully, but these errors were encountered: