-
Notifications
You must be signed in to change notification settings - Fork 464
fix: RPC metrics name table is empty #3782
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
base: develop-2.0.0
Are you sure you want to change the base?
Conversation
Improving our defines that determine if metrics should be gathered. 1st pass attempt at unifying this process. The primary change is that if the __rpc_name_table is not built (yet) when an RPC is invoked that it will attempt to build it for that specific NetworkBehaviour prior to attempting to log RPC metrics.
FelixWentworth-Unity
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested replication project provided with NGO 2.5.0, 2.5.1. 2.6.0, 2.7.0 & these changes and can verify that this PR fixes the issues seen in 2.6.0 and 2.7.0.
com.unity.netcode.gameobjects/Runtime/Messaging/RpcTargets/ProxyRpcTargetGroup.cs
Show resolved
Hide resolved
FelixWentworth-Unity
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested & verified - Looks good!
noellie-velez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix and cleanup! 🚀
Purpose of this PR
Fixes the issue where __rpc_name_table was not built (yet) when an RPC, located on another
NetworkBehaviourthat is ordered later than the invokingNetworkBehaviour, is invoked duringOnNetworkSpawnand scene management is disabled.This PR includes some re-organization:
NetworkBehaviour.fix: #3742
Jira ticket
MTTB-1734
Changelog
NetworkBehaviourassociated with the sameNetworkObjectthat is ordered before theNetworkBehaviourwith the RPC and scene management is disabled could throw an exception.Documentation
Testing & QA (How your changes can be verified during release Playtest)
Functional Testing
Manual testing :
Manual testing doneAutomated tests:
Covered by existing automated testsCovered by new automated testsRpcDuringOnNetworkSpawnDoes the change require QA team to:
Review automated tests?Execute manual tests?Provide feedback about the PR?If any boxes above are checked the QA team will be automatically added as a PR reviewer.
Backports
No back port is required.