You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yoraiz0r
changed the title
2.0.0-exp Distributed Authority has some undue garbage allocation every frame
2.0.0-exp2 Distributed Authority has some undue garbage allocation every frame
Apr 21, 2024
Yoraiz0r
changed the title
2.0.0-exp2 Distributed Authority has some undue garbage allocation every frame
2.0.0-exp2 Distributed Authority has some undue GC every frame
Apr 21, 2024
Description
In NGO 2.0.0-exp2, simply enabling "distributed authority" in the network manager's session mode results in garbage allocation every frame.
The issue occurs under
NetworkSpawnManager.DeferredDespawnUpdate
, due to closure ofcurrentTick
near the end of the method.Reproduce Steps
Actual Outcome
GC per frame with distributed authority is 20
Expected Outcome
GC per frame with distributed authority is 0
Environment
Fixing this
Change the following code from this:
To this:
The text was updated successfully, but these errors were encountered: