pmndrs / react-three-offscreen

📺 Offscreen worker canvas for react-three-fiber
https://offscreen.pmnd.rs
MIT License
434 stars 14 forks source link

Flickering of Canvas #14

Open zanlah opened 1 year ago

zanlah commented 1 year ago

I am experiencing an issue with the Canvas where it randomly flickers. When I use the Canvas from the @react-three/fiberX library (without web workers), my model (which is 2 MB and has 100k faces) works perfectly fine. However, when I switch to using the Canvas from this library, it inconsistently flickers. I suspect that the complexity of the object may be causing this problem. It seems like the flickering occurs when a frame is dropped (but i can't confirm). Furthermore, the flickering appears to worsen over time, as observed after leaving it unattended for a few hours (the gif). Can you provide any insights or suggestions to help resolve this problem?

2023-07-05 19-10-31

datxuantran commented 8 months ago

you can try use stats.js to inspect the fps npm install --save stats.js, beside renderer.info could give you more informations