From 964f593dcb68c9be87ea8b1b2fd5c093c81a3e1c Mon Sep 17 00:00:00 2001 From: ccicnce113424 Date: Sat, 4 Apr 2026 22:58:21 +0800 Subject: [PATCH] cargo-tauri: fix NVIDIA issue by disabling explicit sync https://github.com/tauri-apps/tauri/issues/9394#issuecomment-3795449374 This approach fixes the issue without disabling the DMABUF renderer and should have better performance. --- pkgs/by-name/ca/cargo-tauri/hook.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/ca/cargo-tauri/hook.nix b/pkgs/by-name/ca/cargo-tauri/hook.nix index cb829f9a96a5..d432d79c67d9 100644 --- a/pkgs/by-name/ca/cargo-tauri/hook.nix +++ b/pkgs/by-name/ca/cargo-tauri/hook.nix @@ -41,6 +41,9 @@ makeSetupHook { --prefix WEBKIT_GST_ALLOWED_URI_PROTOCOLS : "asset" # Not picked up automatically by the wrappers from the propagatedBuildInputs. --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "${cargo-tauri.gst-plugin}/lib/gstreamer-1.0/" + # fix NVIDIA issues with Tauri + # https://github.com/tauri-apps/tauri/issues/9394#issuecomment-3795449374 + --set-default __NV_DISABLE_EXPLICIT_SYNC 1 ) '';