Skip to content

[Bug]: Zero GPU Acceleration on Wayland #36633

Closed

Description

@TheSunCat

Preflight Checklist

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:
image

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

  1. github-actions commented on Apr 15, 2023

    @github-actions
    Contributor

    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!

  2. TheSunCat commented on Apr 15, 2023

    @TheSunCat
    Author

    Still happens!

  3. richardabear commented on Apr 26, 2023

    @richardabear

    +1 there definitely seems to be an issue when running things through virtual buffers

  4. github-actions commented on Jul 26, 2023

    @github-actions
    Contributor

    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!

  5. TheSunCat commented on Jul 26, 2023

    @TheSunCat
    Author

    This is still happening.

  6. richardabear commented on Jul 26, 2023

    @richardabear

    +1 still happening

  7. stalkerg commented on Oct 4, 2023

    @stalkerg

    What GPU and drivers did you use?

  8. 31 remaining items

  9. 9xbt commented on Oct 13, 2025

    @9xbt

    Disabling iGPU and using dGPU exclusively fixes the issue. Hardware acceleration is now available to me under Wayland.

    Wouldn't it be using the CPU for rendering then? Either way, broken for me too on latest Electron.

    No, because it would be using the discrete GPU.

    My bad, I'm blind, I thought you disabled the dGPU as well.

    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.

  10. mreinstein commented on Oct 18, 2025

    @mreinstein

    I finally got this working on Linux! It's a little weird, the command line flags are declared a bit differently it seems:

    const { app } = require('electron')
    
    app.commandLine.appendSwitch('enable-unsafe-webgpu')
    app.commandLine.appendSwitch('enable-features', 'Vulkan')

    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.

  11. electron-issue-triage commented on Jan 17, 2026

    @electron-issue-triage

    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!

  12. MattiaNumeroso commented on Feb 13, 2026

    @MattiaNumeroso

    I am facing this issue on an Intel NUC (integrated graphics) running Linux (tested on both Fedora and Zorin OS with Wayland).

  13. mitchchn commented on Mar 27, 2026

    @mitchchn
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions