Skip to content

Conversation

@ryantrem
Copy link
Member

@ryantrem ryantrem commented Oct 8, 2020

Directly calling flushedQueue on iOS has some side effects that I didn't notice in my first test. With some UI transitions, the internal UI state becomes broken. I'm not sure what is going on, but see the comments in the code for more details. We have an active thread on Discord with some Facebook React Native folks, so we'll wait and see if they have a better solution.

I also removed the call to reinitialize graphics right after initialization on Android as this no longer seems to be an issue.

Finally, I'm updating both Babylon.js and Babylon Native to the latest. This brings in Babylon.js changes that expose the XR tracking state, and also bring in the Babylon Native XR render loop fix.

Update to latest Babylon Native

Switch iOS to use setTimeout to indirectly get the queue flushed, as calling it directly breaks internal UI state

Remove the workaround in Android that re-initializes the graphics after initializing as this is no longer an issue
@ryantrem ryantrem requested review from Alex-MSFT and bghgary October 8, 2020 22:00
@ryantrem ryantrem merged commit 61a3a8f into BabylonJS:master Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants