Skip to content

RN Windows/extra rendering frame bug #494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 4, 2022

Conversation

CedricGuillemet
Copy link
Contributor

@CedricGuillemet CedricGuillemet commented Oct 19, 2022

With RN Windows, when the view was unmounted, rendering calls keep being performed and view is not destroyed.
Added mount/unmount event to handle rendering.
With this fix in place, because of async, an extra frame rendering might happen after the resetView. As this resolves the initialization promise, its creation is done when a new engine is being created.

@CedricGuillemet CedricGuillemet changed the title RN Windows/extra rendering frame RN Windows/extra rendering frame bug Oct 19, 2022
@CedricGuillemet CedricGuillemet marked this pull request as ready for review November 2, 2022 14:06
@CedricGuillemet CedricGuillemet merged commit 0845430 into BabylonJS:master Nov 4, 2022
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.

3 participants