From e6e91ca88bf71beb13b7bfd31bb5be9dbf3adb2a Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 19 Oct 2025 21:24:29 -0500 Subject: [PATCH] Disable CUDA by default in favor of Vulkan and VDPAU All of our official releases (Flatpak and AppImage) already do this, so this just makes it official. This can be overridden by running qmake with CONFIG+=enable-cuda. --- app/app.pro | 4 +++- scripts/build-appimage.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/app.pro b/app/app.pro index 3968f90f..b8e06255 100644 --- a/app/app.pro +++ b/app/app.pro @@ -122,7 +122,9 @@ unix:if(!macx|disable-prebuilts) { } } - !disable-cuda { + # Disabled by default due to reliability issues. See #1314. + # CUDA interop is superseded by VDPAU and Vulkan Video. + enable-cuda { packagesExist(ffnvcodec) { PKGCONFIG += ffnvcodec CONFIG += cuda diff --git a/scripts/build-appimage.sh b/scripts/build-appimage.sh index 419f4387..a006a3d5 100755 --- a/scripts/build-appimage.sh +++ b/scripts/build-appimage.sh @@ -34,7 +34,7 @@ pushd $BUILD_FOLDER # work even in X11. To avoid this, we will disable Wayland support for the AppImage. # # We disable DRM support because linuxdeployqt doesn't bundle the appropriate libraries for Qt EGLFS. -qmake $SOURCE_ROOT/moonlight-qt.pro CONFIG+=disable-wayland CONFIG+=disable-libdrm CONFIG+=disable-cuda PREFIX=$DEPLOY_FOLDER/usr DEFINES+=APP_IMAGE || fail "Qmake failed!" +qmake $SOURCE_ROOT/moonlight-qt.pro CONFIG+=disable-wayland CONFIG+=disable-libdrm PREFIX=$DEPLOY_FOLDER/usr DEFINES+=APP_IMAGE || fail "Qmake failed!" popd echo Compiling Moonlight in $BUILD_CONFIG configuration