-
Notifications
You must be signed in to change notification settings - Fork 87
Fixing Hardware Decoding Problems
Moonlight uses DXVA2 for hardware acceleration on Windows. All modern GPUs from AMD, NVIDIA, and Intel should support hardware decoding of H.264 via DXVA2 with the proper drivers installed.
If you have issues with hardware decoding:
- Ensure your client PC GPU drivers are properly installed and up-to-date from the GPU manufacturer or PC vendor's website.
- If your client PC supports NVIDIA Optimus, try switching Moonlight to run on the integrated Intel GPU.
- Ensure you're not using Remote Desktop to access your PC. This prevents your GPU from being usable for rendering.
Moonlight uses VideoToolbox for hardware acceleration on macOS. All Macs capable of running the latest release of macOS should support hardware H.264 decoding without any work required.
If you are using Hackintosh machine, you'll need to find a GPU driver (if available) that correctly implements VideoToolbox decoding for H.264 video.
Moonlight uses VAAPI and VDPAU for hardware acceleration on Linux. One of those two APIs should be compatible with any modern GPU. The most common issue preventing it from working properly is a missing VAAPI or VDPAU driver package for your GPU.
-
Run
flatpak update
to ensure the Flatpak runtime has installed the matching extension for your current GPU. -
Ensure your desktop session is running using X, not Wayland. On GNOME-based distros, you can switch this at the logon screen by clicking the little gear icon.
-
The following software limitations prevent hardware acceleration from being usable on Wayland:
- VDPAU - the API has no Wayland rendering support at all
- VAAPI - missing DRI3 support that is required to render on XWayland
- GNOME's Wayland compositor (Mutter) - missing YUV surface support that is required for native Wayland rendering
-
All GPUs:
sudo apt install ubuntu-restricted-addons
sudo apt install va-driver-all vdpau-driver-all
Intel GPUs:
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install intel-vaapi-driver
Other GPUs:
sudo dnf install mesa-vdpau-drivers
Have a question or problem that isn't addressed here? Try asking on our Discord server!