How to coordinate <suspense /> end and start of useframe state clock?


I would like the clock in my useFrame to start at the same moment than ends (which seems logical). What is the best way to do that ?


you can use delta instead of the clock. the default clock starts when the canvas boots up. you can of course use your own and it will be in sync with model loading/async tasks ootb. but this is how you use delta:

function SomeAsnycModel() {
  const { scene } = useGLTF(...)
  useFrame((state, delta) => {
    someref.current.position.x += delta
1 Like