Repository navigation
Commit 5c3b01c
committed
fix(3d): add forceWebGL=true to WebGPURenderer for async init compatibility
Three.js WebGPURenderer requires async await renderer.init() before
.render() can be called, but R3F Canvas gl prop is synchronous.
Added forceWebGL: true to use the WebGL2 backend which initializes
synchronously, avoiding the 'Renderer.render() called before backend
initialized' error. Revert to native WebGPU when R3F supports async
renderer initialization.1 parent 0e9dc4a commit 5c3b01c
2 files changed
Lines changed: 6 additions & 2 deletions
File tree
- client/src
- features/pomodoro/components/chronos
- lib/3d/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
189 | 192 | | |
190 | 193 | | |
191 | 194 | | |
| 195 | + | |
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| |||
0 commit comments