fix(tauri): Set WEBKIT_DMABUF_RENDERER_FORCE_SHM=1 to avoid nvidia graphics bug at no performance cost - #6293
Conversation
…void blank-screen, but keep acceleration, with nvidia graphics drivers
There was a problem hiding this comment.
Code Review
This pull request configures the WEBKIT_DMABUF_RENDERER_FORCE_SHM environment variable in the Tiltfile for the Tauri local resource to force shared-memory buffers and avoid GPU-path glitches. Feedback indicates that setting this environment variable in the Tiltfile only resolves the issue during local development, and recommends setting it programmatically in the Rust entry point of the Tauri application to ensure production builds are also protected against the blank-screen Nvidia bug.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Per review guidance: the Tiltfile env only covered local dev, leaving packaged builds exposed to the NVIDIA blank-frame dmabuf bug. Set the variable in phase_tauri::run() before the first webview is created, compile-gated to Linux, with a pre-set environment value winning so users can override. Drop the Tiltfile setting so dev builds exercise the same in-app path as production. Assisted-by: ClaudeCode:claude-fable-5
|
🤖 AI text below 🤖 Addressed the review guidance: the env var is now set programmatically in Verification: |
WEBKIT_DMABUF_RENDERER_FORCE_SHM=1on linux machines to avoid blank-screen, but keep acceleration, with nvidia graphics drivers. Without this tauri renders a blank screen, and the game is near unplayable without GPU acceleration, soWEBKIT_DISABLE_DMABUF_RENDERER=1is not the correct solution.This PR adds a line to the Tiltfile to ensure this environment variable is set.