Mirror icon indicating copy to clipboard operation
Mirror copied to clipboard

SceneInterestManagement performance issue

Open Eldirfar opened this issue 5 years ago • 3 comments

Describe the bug Despawning a single NetworkIdentity causes a big performance drop, not to mention stopping the server where all identities are destroyed one by one which causes a huge waterfall of OnRebuildSceneObservers calls. I think the attached screenshot tells all.

[IMPORTANT] How can we reproduce the issue, step by step: My game is based on MultipleAdditiveScenes example.

Expected behavior SceneInterestManagement .RebuildSceneObservers should be called only once on stop host.

Screenshots image

Desktop:

  • OS: Windows
  • Build target: Android, standalone, iOS
  • Unity version: 2020.3.17
  • Mirror 53.0.0

Eldirfar avatar Oct 28 '21 13:10 Eldirfar

Int Mgmt should do nothing if no active server. PR submitted.

MrGadget1024 avatar Oct 28 '21 14:10 MrGadget1024

What about the situation when we are not shutting down the server instead of just closing/cleaning only one room/scene?

Eldirfar avatar Oct 29 '21 09:10 Eldirfar

What about the situation when we are not shutting down the server instead of just closing/cleaning only one room/scene?

Different issue with a different fix. Wait for 2978 to get merged and see where that gets us.

MrGadget1024 avatar Oct 29 '21 14:10 MrGadget1024