Open
Description
Describe the bug
I have been trying out using tauri with WebGL, but the window gets unresponsive when
- a few setTimeout/rAF have performed WebGL operations (see the repro)
- a reload is about to happen due to change of the source code in dev mode
There is no log output in devtools or from tauri dev
.
I have reproduced this behavior as well using create-tauri-app --alpha
.
Setting WEBKIT_DISABLE_COMPOSITING_MODE=1
works around the problem, but is to my understanding not recommended (https://blogs.igalia.com/carlosgc/2017/02/10/).
Reproduction
git clone https://github.com/mntnoe/tauri-webgl-repro.git
cd tauri-webgl-repro
npm install
npm run tauri dev
Notice that first three colors are rendered, after which the window freeze.
Expected behavior
WebGL operations performed without making the window unresponsive.
Platform and versions
[✔] Environment
- OS: Ubuntu 22.04 X64
✔ webkit2gtk-4.0: 2.40.5
✔ rsvg2: 2.52.5
✔ rustc: 1.72.0 (5680fa18f 2023-08-23)
✔ Cargo: 1.72.0 (103a7ff2e 2023-08-15)
✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 19.1.0
- pnpm: 7.23.0
- npm: 8.19.3
[-] Packages
- tauri [RUST]: 1.4.1
- tauri-build [RUST]: 1.4.0
- wry [RUST]: 0.24.3
- tao [RUST]: 0.16.2
- @tauri-apps/api [NPM]: not installed!
- @tauri-apps/cli [NPM]: 1.4.0
[-] App
- build-type: bundle
- CSP: unset
- distDir: ../src
- devPath: ../src
Stack trace
No response
Additional context
Please let me know if you need additional info.
Activity