You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During animations currently they are done using React state and changing that state. This causes possibly unnecessary re-renders. Instead what should be done is this code should be moved to a useEffect hook or something similar to cause modifications to the rotations or what ever other attributes to the mesh reference.
The text was updated successfully, but these errors were encountered:
This is the example code I have seen from the docs on how you might do this useFrame((state, delta) => (ref.current.rotation.x += delta))
It is possible that fixing this issue will make #7 redundant since I think it is possible the the heavy count of re-renders causes the visual glitches and slow ray casting, but I am not positive. (Edit: This would not make it redundant)
During animations currently they are done using React state and changing that state. This causes possibly unnecessary re-renders. Instead what should be done is this code should be moved to a useEffect hook or something similar to cause modifications to the rotations or what ever other attributes to the mesh reference.
The text was updated successfully, but these errors were encountered: