wry icon indicating copy to clipboard operation
wry copied to clipboard

[feat] disable hardware acceleration

Open tauri-bot opened this issue 3 years ago • 3 comments
trafficstars

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

tauri-bot avatar Jun 22 '22 09:06 tauri-bot

We are using tauri for a desktop app that will run while in VR, so avoiding GPU usage will be really useful.

TheButlah avatar Aug 07 '22 03:08 TheButlah

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)

SebastienGllmt avatar Sep 20 '22 00:09 SebastienGllmt

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

FabianLars avatar Dec 12 '22 18:12 FabianLars