Weird behaviour until component is remounted [minimal reproduction inside] #2138
-
Hello everyone, I have a minimal scene in which the camera follow an object.
Video of the above. Any idea what is causing this ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
After discussing it with @SteveSDaBest on the pmndrs Discord it looks like it comes from the renderPriority changing on remount. If I render in App.jsx I guess that's everything there is to it. |
Beta Was this translation helpful? Give feedback.
-
box -2 and cam -1 works work me. i think this was a framerate sync issue. the order is determined like so: subscribers: [...internal.subscribers, { ref, priority }].sort((a, b) => a.priority - b.priority), |
Beta Was this translation helpful? Give feedback.
-
could you make a quick pr for correctly spelling it out. i have a hard time visualising ordered numbers, it's probably the other way round. |
Beta Was this translation helpful? Give feedback.
-
Couldn't find time to do it earlier, I see @CodyJasonBennett took care of it ( thanks a lot 🙌 ) Edit, marking this as answer, but the whole thread is an answer. |
Beta Was this translation helpful? Give feedback.
Couldn't find time to do it earlier, I see @CodyJasonBennett took care of it ( thanks a lot 🙌 )
The rest of the discussion is happening here #2139 (comment)
Edit, marking this as answer, but the whole thread is an answer.