Skip to content

Conversation

EmandM
Copy link
Collaborator

@EmandM EmandM commented Oct 2, 2025

Purpose of this PR

Cache the NetworkBehaviour.NetworkManager property so it doesn't do a full lookup for each access. Set the cached value on network prespawn.

Jira ticket

needs to be created

Changelog

  • Changed: Improved performance of the NetworkBehaviour.NetworkManager accessor

Documentation

  • No documentation changes or additions were necessary.

Testing & QA (How your changes can be verified during release Playtest)

Shouldn't need any specific testing

Functional Testing

  • Manual testing done

Automated tests:

  • Covered by existing automated tests
  • Covered by new automated tests

Does 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

This is a performance improvement so no backport is needed

@EmandM EmandM requested a review from a team as a code owner October 2, 2025 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant