Skip to content

Conversation

@EmandM
Copy link
Collaborator

@EmandM EmandM commented Oct 31, 2025

Purpose of this PR

Remove the GetFlag and SetFlag functions from NetworkTransformState

Jira ticket

MTT-13655

Changelog

  • Changed: Optimized performance of `NetworkTransformState

Documentation

  • No documentation changes or additions were necessary.

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

Functional Testing

Manual 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

No backport needed.

@EmandM EmandM requested a review from a team as a code owner October 31, 2025 17:25
Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still reviewing but have two places that I think you meant to make those methods internal and not public API.

@EmandM EmandM enabled auto-merge (squash) November 3, 2025 23:35
netcode-ci-service and others added 17 commits November 4, 2025 15:24
Fixing AnticipatedNetworkTransform m_NetworkManager issue.
Refactoring how we handle updating public facing flags.
adding comment
Updating some tests with these changes
(WIP) Migrating away from direct transform access and using a cached transform approach.
Migrating all of the flags into FlagStates.
Migrating the bit serialization into FlagStates.
Migrating flag helper methods into FlagStates.
This resolves the issue with the EntityId no longer supporting integer conversion.
removing partial comment and whitespace.
NoelStephensUnity and others added 6 commits November 21, 2025 19:19
Another spot where EntityId was needed.
Missed SwitchTransformSpaceWhenParented.
Since MP Tools subscribes to the TransportInitialized and TransportDisposed methods and we have to vet against packages with dependencies, I am putting a temporary work-around to get past this issue so we can land the EntityId fix.
Once MP Tools is updated for EntityId, we can re-enable the original fix.
Found a few more places that could be micro-optimized.
Fixing missed transformToUse that was if-def'd out.
Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@EmandM EmandM merged commit 18af9d6 into develop-2.0.0 Nov 25, 2025
24 of 25 checks passed
@EmandM EmandM deleted the chore/optimize-network-transform-state branch November 25, 2025 22:30
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.

5 participants