wry
wry copied to clipboard
[feat] disable hardware acceleration
This issue has been upstreamed from https://github.com/tauri-apps/tauri/issues/4438
Describe the problem
I need disable hardware acceleration. In electron, I can use code "app.disableHardwareAcceleration()". I hope tauri has the same functional.
Describe the solution you'd like
use js code like electron, or set in tauri.conf.json
Alternatives considered
No response
Additional context
No response
We are using tauri for a desktop app that will run while in VR, so avoiding GPU usage will be really useful.
I also want this because occasionally disabling hardware acceleration is needed to get the app to show up properly in OBS for streaming
Same issue, I believe, also causes issues with displayed colors on streaming software when the monitor is using HDR (since Electron has the same issue for HDR content)
At least on Windows this can be done manually now by setting --disable-gpu in with_additional_browser_args. a built-in setting would likely use the same flag or a similar one because webview2 does not expose an actual setting.
^ only in wry until https://github.com/tauri-apps/tauri/pull/5799 is merged