Closed hellogerard closed 8 years ago
Thanks for your interest! I can answer 1 and 2 here, and sort of answer 3.
requestAnimationFrame
even if you don't change anything by calling render
. I did this since I expected some objects to animate themselves outside of React's visibility (i.e., skeletal meshes) but I'm not sure it ever caused any problems. In any case, you can set the enableRapidRender
prop in THREERenderer
to false
to disable auto-rendering every frame. There are some other props mentioned here: https://github.com/Izzimach/react-three#extra-propsI opened an issue here so hopefully @toxicFork can comment on the differences better than I can.
Thank you, @Izzimach.
Hello,
I've been writing ordinary React web apps for awhile now and am comfortable with that. I have inherited an existing THREE.js project that is a mess of Javascript classes wrapping THREE.js objects. I was hoping to use your project to bring the clarity and ease of React to THREE. Few questions, if you don't mind:
render
function instead of usingrequestAnimationFrame
. Is that correct? If so, then a static THREE scene that just sits there should not re-render at all, resulting in good performance! (My THREE app is mostly idle, except for if there is user input.)Thanks for your time.