supermedium / aframe-react

:atom: Build virtual reality experiences with A-Frame and React.
https://ngokevin.github.io/aframe-react-boilerplate/
MIT License
1.42k stars 151 forks source link

Question about 3d performances and react re-rendering on state change #120

Closed Aarbel closed 6 years ago

Aarbel commented 6 years ago

@ngokevin

I want to put some state variable inside my React Component, pass this variable to react-aframe Component and then change some aframe scenes / items with this variable.

Does React state change and React re-rendering can kill A-frame and core three.js rendering performances ?

Instead would you recommend using : https://www.npmjs.com/package/aframe-state-component ?

Thanks a lot !

Aarbel commented 6 years ago

sorry just saw this on top of repo :

image