Skip to content

Get reset (e.g. bgfx::shutdown) working with fast refresh #125

Closed
@ryantrem

Description

@ryantrem

As mentioned here: BabylonJS/BabylonNative#523 (comment)

Fast refresh is not working with the bgfx::shutdown call that happens while tearing down an engine in useEngine. As a quick fix, I am disabling the bgfx::shutdown call for dev mode builds (e.g. only release graphics resources in release builds). This isn't great, but it's proving rather difficult to fix due to details of how fast refresh works. We should try to fix this so both debug and release builds behave the same.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions