React three fiber useFrame performance

in react three fiber what should i do if i wanna update values in different places of my app, should i use mutiple useFrames ? or what is the better solution ?

It’s OK to use multiple useFrame hooks, yes. They’ll each run once per render loop iteration, but they don’t create new render calls.

If you need to update values in different places and you need very specific ordering guarantees then it might be better either to colocate the calls, or to create a simple scheduling system driven by a single top-level useFrame.