Commit 964f593d authored by ccicnce113424's avatar ccicnce113424
Browse files

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.
parent 693938a7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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
      )
    '';