Repository navigation
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- 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
22.0.0
What operating system are you using?
Other Linux
Operating System Version
Linux apg 6.0.11-arch1-g14-1 #1 SMP PREEMPT_DYNAMIC Wed, 07 Dec 2022 16:24:00 +0000 x86_64 GNU/Linux
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
I expect content rendered in Electron to use the GPU to display graphics, and accelerate video.
Actual Behavior
No content inside of Electron seems to be accelerated through the GPU.
Testcase Gist URL
No response
Additional Information
This only occurs when running Electron using the Wayland backend. When running under XWayland, acceleration appears to be functional. I am passing the following flags to Electron:
--ignore-gpu-blocklist
--enable-gpu-rasterization
--enable-gpu
--enable-unsafe-webgpu
--enable-features=WebRTCPipeWireCapturer,Vulkan,UseSkiaRenderer,VaapiVideoDecoder,CanvasOopRasterization,VaapiVideoEncoder,RawDraw
--disable-features=UseSkiaRenderer,UseChromeOSDirectVideoDecoder
--enable-zero-copy
--enable-oop-rasterization
--enable-raw-draw
--enable-accelerated-mjpeg-decode
--enable-accelerated-video
--enable-native-gpu-memory-buffers
--use-vulkan
--use-gl=egl
--ozone-platform-hint=auto
These flags allow Chromium to accelerate:

This issue affects Electron 20, 21, and 22 in my testing. I am applying these flags to Electron through adding them here and launching WebCord (a Discord client) with Electron 22, then fullscreening a video. I see a CPU core immediately go to 100% usage, and the video playback is laggy and drops frames.
My system is Arch Linux with a Ryzen 9 6900HS and RX 6800M GPU under the open source AMD drivers.
I have attached logs for both Electron 20 and Electron 22:
logs22.txt
logs20.txt
Activity
github-actions commentedon Apr 15, 2023
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
TheSunCat commentedon Apr 15, 2023
Still happens!
richardabear commentedon Apr 26, 2023
+1 there definitely seems to be an issue when running things through virtual buffers
github-actions commentedon Jul 26, 2023
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
TheSunCat commentedon Jul 26, 2023
This is still happening.
richardabear commentedon Jul 26, 2023
+1 still happening
stalkerg commentedon Oct 4, 2023
What GPU and drivers did you use?
31 remaining items
9xbt commentedon Oct 13, 2025
The only solution I found is to run Discord under XWayland, which works just fine with hardware accel. Even though sometimes I have some glitches they are very minor.
mreinstein commentedon Oct 18, 2025
I finally got this working on Linux! It's a little weird, the command line flags are declared a bit differently it seems:
Notice how the
--dashes are missing, and vulkan gets passed as a 2nd argument.Why? I do not know. But I'm definitely seeing webgpu/vulkan hardware acceleration in electron after adding these 2 flags!
Hope this helps any of you still bashing your head against this.
electron-issue-triage commentedon Jan 17, 2026
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
MattiaNumeroso commentedon Feb 13, 2026
I am facing this issue on an Intel NUC (integrated graphics) running Linux (tested on both Fedora and Zorin OS with Wayland).
chore: upgrade Electron 40.8.3 to 41.0.3 (Chrome 146)
chore: upgrade Electron 40.8.3 to 41.0.3 (Chrome 146)
chore: upgrade Electron 40.8.3 to 41.0.3 (Chrome 146)
mitchchn commentedon Mar 27, 2026
GPU acceleration is supported in modern versions of Electron on Wayland. There are still edge cases (Vulkan, NVIDIA + vaapi, etc.) but these are upstream in Chromium. If anyone is running into problems, please file a new issue for an up-to-date Electron version with a specific repro + gist. Thanks! @nikwen let's close this one.
chore: upgrade Electron 40.8.3 to 41.0.3 (Chrome 146)
chore: upgrade Electron 40.8.3 to 41.0.3 (Chrome 146)
chore: upgrade Electron 40.8.3 to 41.0.3 (Chrome 146)
chore: upgrade Electron 40.8.3 to 41.0.3 (Chrome 146)