-
Notifications
You must be signed in to change notification settings - Fork 447
Editor Perf - NetworkManagerHelper.EditorApplication_hierarchyChanged #2613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm having the same issue. A lot of fps drops. Would be great at least being able to disable this feature. |
I'm having this issue too, everytime I activate, deactive, instantiate or destory a gameobject, the fps drops, the more gameobjects on the scene, the more the fps drops, even without initiating anything related to the netcode. I tried to reproduce this in different scenes, in an empty scene with only a camera and an empty GameObject I experienced a 2%-5% fps drops, in a scene with around 50 GameObjects (all being UI GameObjects) i experienced around 30% fps drops, and in a scene with around 200 GameObjects i experienced around 70% fps drop. I'm using a Ryzen 5 1600, 16GB of RAM, Radeon RX 580. |
I believe @NoelStephensUnity is already aware of this. Let's hope we can get an update ASAP. Without this, I have like more |
I see this was fixed at 2.0.0 @NoelStephensUnity, however I see that 2.0.0 is only compatible with Unity 6000.0+. Any chances this can also be compatible with Unity LTS 2022? My project with a big amount of GOs in the hierarchy is using Unity 2022 LTS |
This issue was resolved in #3027 and should be included in NGO v1.12.0. |
Description
I'm experiencing some serious slow downs in the editor from the following:
EditorApplication.hierarchyChanged: Unity.Netcode.Editor.NetworkManagerHelper.EditorApplication_hierarchyChanged
I'm seeing on the order of 100ms per frame or more on this call in the editor profiler.
I dug in a bit and it looks like maybe this is the source of perf issues as I have a lot of game objects in my scene?
Library\PackageCache\[email protected]\Editor\NetworkManagerHelper.cs Line 113:
var allNetworkManagers = Resources.FindObjectsOfTypeAll();
Reproduce Steps
Actual Outcome
Observe that Unity.Netcode.Editor.NetworkManagerHelper.EditorApplication_hierarchyChanged is taking a very long time, and the vast majority of the frame and editor loop time.
Expected Outcome
Unity.Netcode.Editor.NetworkManagerHelper.EditorApplication_hierarchyChanged would have have negligible impact on editor perf.
Environment
Additional Context
As a workaround to the perf, I tried finding the root cause of EditorApplication.hierarchyChanged getting called every frame, but haven't been able to efficiently debug or identify the cause for that getting invoked yet. Regardless, I would not expect NetworkManagerHelper to have the negative impact on perf that we are seeing.
The text was updated successfully, but these errors were encountered: