tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
85.98k stars 2.6k forks source link

[feat] disable hardware acceleration #4438

Open kawais opened 2 years ago

kawais commented 2 years ago

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

amrbashir commented 2 years ago

/upstream tauri-apps/wry

sekwah41 commented 2 years ago

If you are running it on Linux export LIBGL_ALWAYS_SOFTWARE=1 may work.

It's how I'm running it fine on a raspberry pi over VNC otherwise, the app just freezes for ages between frame updates.

Not exactly a proper fix but good for edge cases for now that are on Linux at least.