BabylonJS / BabylonJS/BabylonNative
Metal View update not working
- Dominant language
- C++
- Stars
- 919
- Forks
- 162
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 19
Description
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
Contributor guide
Assessment
This issue has not been assessed yet.