Closed CedricGuillemet closed 12 months ago
Look at this with the shutdown scenarios.
Issue can be mitigated by increasing the number of FrameBuffer. With a number big enough (4096+), Framebuffer are destroyed at some point. Setting it to 256 for now in the CI.
Change done in this PR : https://github.com/BabylonJS/BabylonNative/pull/1260 Closing for now. reopen if a better solution is needed.
With JSC and Chakra, canvas and context are destroyed just after the dynamicTexture is disposed. With V8, those 2 objects are not destroyed before the JS Runtime is destroyed. More and more rendertargets are created and kept in memory. After a while, bgfx can't create a new one.