Hi! I have a similar problem, where I load the new scene, where the Atlas is not referenced in any way, but according to the Profiler, it still has a lot of references to it.
This is the code for when I am changing scenes:
await UnloadScene(sceneToUnload);
AtlasUtilities.ClearCache();
await UniTask.Yield();
await Resources.UnloadUnusedAssets();
await BuildScene(sceneToLoad);
When I uninstalled the old scene and performed GC and switched to the new scene, there were still Spine resources of the old scene that were not recovered
Pagina 1 di 1
niezhijing
Non hai i permessi necessari per visualizzare i file allegati in questo messaggio.
9 months ago
- niezhijing
- Messaggi: 15
Harald
Please note that the references you tracked are a profiler capture from the Unity Editor play mode (as the remark says "Memory usage is the Editor is not the same is it would be in a Player"). We could not yet reproduce such an issue in the built executable. Do you also encounter this behaviour when profiling your built executable?
9 months ago
-
Harald - Messaggi: 4459
niezhijing
I got the same results on my real Android mobile phoneHarald ha scritto:Please note that the references you tracked are a profiler capture from the Unity Editor play mode (as the remark says "Memory usage is the Editor is not the same is it would be in a Player"). We could not yet reproduce such an issue in the built executable. Do you also encounter this behaviour when profiling your built executable?
9 months ago
- niezhijing
- Messaggi: 15
Harald
Thanks for getting back to us, sorry to hear that it also occurs on your target device. Could you please send us a minimal Unity project that shows this issue? You can send it as a zip package to contact@esotericsoftware.com, briefly mentioning this forum thread URL so that we know the context. Then we can have a look at what's going wrong.
9 months ago
-
Harald - Messaggi: 4459
niezhijing
Sorry,There's something wrong with the way I unloaded
9 months ago
- niezhijing
- Messaggi: 15
Harald
Thanks for getting back to us. I have seen your new thread here:
Is there a way to release the initial resource.
Let's continue the discussion over there.
Is there a way to release the initial resource.
Let's continue the discussion over there.
9 months ago
-
Harald - Messaggi: 4459
Mark topic unread
• Pagina 1 di 1
Torna a Unity
- Tutti gli orari sono UTC