-
-
Notifications
You must be signed in to change notification settings - Fork 782
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(NetworkClient): Defer ApplySpawnPayload until OnObjectSpawnFinished
#3097 (#3961) * fix(NetworkClient): Defer ApplySpawnPayload until OnObjectSpawnFinished Virtually eliminates null refs with GO/NI/NB SyncVars by getting all objects into spawned dictionary before applying payloads and invoking hooks. - No change to normal spawning, only initial spawn - Uses and clears a static dictionary, so no garbage allocation See ticket #3097 * Update NetworkClient.cs * Update Assets/Mirror/Core/NetworkClient.cs --------- Co-authored-by: mischa <[email protected]>
- Loading branch information
1 parent
8b84e92
commit fb59969
Showing
1 changed file
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters