Frequently Dispose AssetContainer Causes Memory Leak

Hi sebavan,

Thank you for your reply. Sure it may take longer than 100ms since it is a async function. I tried 1000ms which loading process can be finished and it got slower increase.

I found this one may relate to this issue:

Other observations:

  1. If I use scene.onDisposeObservable.clear() after disposing assetContainer, the empty assetcontainer class will be cleaned.
  2. using chained Promise and returns Promise(assetcontainer) causes faster memory increase than just return the assetcontainer itself.