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
{{ message }}
Repository navigation
app.disableHardwareAcceleration() no longer fully disables GPU usage on Windows Task Manager in Electron v38+ (worked in v37) #51363
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
41.3.0
What operating system(s) are you using?
Windows
Operating System Version
Windows 11 Pro version 22631.6199
What arch are you using?
x64
Last Known Working Electron version
37.10.3, 38.0.0-nightly.20250616
Does the issue also appear in Chromium / Google Chrome?
I don't know how to test
Expected Behavior
Calling:
app.disableHardwareAcceleration();
should disable hardware acceleration consistently, or at least prevent GPU process GPU utilization similar to Electron v37 behavior.
Actual Behavior
On Electron v38+, GPU Process still appears active and uses GPU resources despite calling app.disableHardwareAcceleration() correctly before app ready.
Could you please make the testcase gist load a local HTML file? It makes it safer for maintainers to run the gist, and it makes it possible for us to inspect the code.
Would you be able to check which v38 alpha/beta/nightly version introduced the issue? You can switch Electron versions easily in Electron Fiddle. You can also bisect in Fiddle: View > Toggle Bisect Helper. (You might need to enable nightly versions in the Electron Fiddle settings.)
Opened 'chrome://gpu' and checked the information, 'Graphics Feature Status' shown app.disableHardwareAcceleration() is effective to these two versions.
It is a Chromium change. Since some version, even if you have software rendering, output still uses direct composition (GPU) for presenting.
So, you need both lines: app.disableHardwareAcceleration(); app.commandLine.appendSwitch("disable-direct-composition");
Thanks for the fix! Confirming #51817 resolves the original report: on Electron 45.x, app.disableHardwareAcceleration() now appends --disable-gpu and the real GPU (Intel/NVIDIA) is no longer used.
Follow-up: remaining "GPU" usage comes from WebGL running on WARP
For anyone still seeing GPU usage on the GPU process after calling disableHardwareAcceleration(): if the page uses WebGL, the load is attributed to the Microsoft Basic Render Driver (D3D11 WARP), which actually runs on the CPU. This is expected Chromium behavior:
Since Chromium 144.0.7527.0 / Electron v40.0.0-beta.1, the WebGL software fallback on Windows moved from SwiftShader to D3D11 WARP. See Chromium commit e80b4b262d8f, "Flip SwiftShader deprecation to launched" (crbug 40277080).
SwiftShader is a plain CPU library, so it never showed up in Task Manager's GPU column. WARP runs through the Basic Render Driver, so it does.
The CPU cost is about the same in both cases. Only its visibility changed.
Measured with the gist below (full-screen WebGL shader, disableHardwareAcceleration() called):
Electron
GPU process --use-angle
Task Manager "GPU"
GPU process CPU
37.10.3
swiftshader-webgl
0%
~43%
40.0.0-alpha.8 (Chromium 144.0.7526.0)
swiftshader-webgl
0%
~43%
40.0.0-beta.1 (Chromium 144.0.7527.0)
d3d11-warp-webgl
Basic Render Driver
~43%
45.2.3
d3d11-warp-webgl
Basic Render Driver ~57%
~45%
any of the above + --disable-software-rasterizer
--use-gl=disabled
0%
~0%
Workaround to disable WebGL completely (canvas, OffscreenCanvas, workers and WebGPU all become unavailable):
app.commandLine.appendSwitch('disable-webgl') has no effect: WebGL contexts are still created.
webPreferences: { webgl: false } blocks <canvas> WebGL, but notOffscreenCanvas or workers.
With disable-software-rasterizer, app.getGPUInfo() rejects with "GPU access is disabled through commandline switch --disable-gpu and --disable-software-rasterizer", so callers need a .catch().
Would the team be open to clarifying this in the docs for app.disableHardwareAcceleration()? Today it reads as if all GPU usage is disabled, but in practice:
WebGL / WebGPU content keeps running through a software fallback (D3D11 WARP on Windows since Electron 40), which can be CPU-heavy and appears as GPU usage in Windows Task Manager.
The GPU process is still started (it hosts the software compositor), which is expected.
To make WebGL unavailable entirely, apps can also append --disable-software-rasterizer.
Activity
nikwen commentedon Apr 28, 2026
Thanks for reporting!
View > Toggle Bisect Helper. (You might need to enable nightly versions in the Electron Fiddle settings.)oalfroukh commentedon Apr 29, 2026
Hi @nikwen
nikwen commentedon Apr 29, 2026
Thank you!
Would you be able to check which v38 alpha/beta/nightly version introduced the issue?
oalfroukh commentedon Apr 29, 2026
it seems that the issue started on
v38.0.0-nightly.20250617nikwen commentedon Apr 29, 2026
Thanks!
Range: v38.0.0-nightly.20250616...v38.0.0-nightly.20250617
cucbin commentedon May 17, 2026
Opened 'chrome://gpu' and checked the information, 'Graphics Feature Status' shown
app.disableHardwareAcceleration()is effective to these two versions.estoykov commentedon Jun 10, 2026
It is a Chromium change. Since some version, even if you have software rendering, output still uses direct composition (GPU) for presenting.
So, you need both lines:
app.disableHardwareAcceleration();app.commandLine.appendSwitch("disable-direct-composition");oalfroukh commentedon Nov 9, 2026
Thanks for the fix! Confirming #51817 resolves the original report: on Electron 45.x,
app.disableHardwareAcceleration()now appends--disable-gpuand the real GPU (Intel/NVIDIA) is no longer used.Follow-up: remaining "GPU" usage comes from WebGL running on WARP
For anyone still seeing GPU usage on the GPU process after calling
disableHardwareAcceleration(): if the page uses WebGL, the load is attributed to the Microsoft Basic Render Driver (D3D11 WARP), which actually runs on the CPU. This is expected Chromium behavior:Measured with the gist below (full-screen WebGL shader,
disableHardwareAcceleration()called):--use-angleswiftshader-webglswiftshader-webgld3d11-warp-webgld3d11-warp-webgl--disable-software-rasterizer--use-gl=disabledWorkaround to disable WebGL completely (canvas, OffscreenCanvas, workers and WebGPU all become unavailable):
A few notes from testing on 45.x:
app.commandLine.appendSwitch('disable-webgl')has no effect: WebGL contexts are still created.webPreferences: { webgl: false }blocks<canvas>WebGL, but notOffscreenCanvasor workers.disable-software-rasterizer,app.getGPUInfo()rejects with "GPU access is disabled through commandline switch --disable-gpu and --disable-software-rasterizer", so callers need a.catch().Repro gist: https://gist.github.com/oalfroukh/7a8f44d8c61ab6a9786064e6eab5a90d
Docs request
Would the team be open to clarifying this in the docs for
app.disableHardwareAcceleration()? Today it reads as if all GPU usage is disabled, but in practice:--disable-software-rasterizer.