Skip to content

Metal View update not working #1436

Open

Description

@shial4

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

Activity

  1. added
    bug
    on Oct 1, 2024
  2. added this to the 8.0 milestone on Oct 1, 2024
  3. modified the milestones: 8.0, 9.0, Future on Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions