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.
This commit is contained in:
ccicnce113424
2026-04-04 23:19:32 +08:00
parent 693938a784
commit 964f593dcb
+3
View File
@@ -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
)
'';