Skip to content
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

Metal View update not working #1436

Open
shial4 opened this issue Sep 30, 2024 · 0 comments
Open

Metal View update not working #1436

shial4 opened this issue Sep 30, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@shial4
Copy link
Contributor

shial4 commented Sep 30, 2024

When updating metal view in the case where system manages to re-use the same address bgfx will skip it due to that exact reason. Even though it is completally new allocated view on the native (system, iOS) side.

https://github.com/BabylonJS/bgfx/blob/master/src/renderer_mtl.mm#L1588-L1593

To Reproduce
allocate view [[MTKView alloc] init]
update view allocated view. and dealocate it, while
allocating a new one [[MTKView alloc] init] and updating view with it.

It is all timing depended but you can see the view re-uses same address, where the layer is brand new

Expected behavior
View should be updated.

  • Platform: iOS
@bghgary bghgary added the bug Something isn't working label Oct 1, 2024
@thomlucc thomlucc added this to the 8.0 milestone Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants