Izzimach / react-three-legacy

React bindings to create and control a 3D scene using three.js
Other
1.52k stars 128 forks source link

Avoid double-rendering with rapidrender option #32

Open Izzimach opened 9 years ago

Izzimach commented 9 years ago

As mentioned in #28, react-three automatically renders the scene using requestAnimationFrame even if you don't change the scene. This causes double-rendering if you update the scene with React.render. You can turn it off manually with #29 but the code should check and not render a scene more than once per frame.