Skip to content

UnifiedNetcodeTransport refactor#3976

Open
ShadauxCat wants to merge 9 commits intoexperimental/v3-x-x/unified-poc-migrationfrom
experimental/v3-x-x/hybrid_spawn_integration_tests
Open

UnifiedNetcodeTransport refactor#3976
ShadauxCat wants to merge 9 commits intoexperimental/v3-x-x/unified-poc-migrationfrom
experimental/v3-x-x/hybrid_spawn_integration_tests

Conversation

@ShadauxCat
Copy link
Copy Markdown
Collaborator

@ShadauxCat ShadauxCat commented May 7, 2026

Basically just #3943 with some fixes to issues exposed by unit tests.

ShadauxCat and others added 3 commits May 6, 2026 21:47
…odeTransport to not use entities (#3943)

Refactor sending and receiving of RPCs to not use entities, thereby preserving send/receive order without having to encode an order value and reorder messages on the receive side.
@ShadauxCat ShadauxCat requested review from a team, EmandM and NoelStephensUnity as code owners May 7, 2026 15:34
@ShadauxCat ShadauxCat changed the title Experimental/v3 x x/hybrid spawn integration tests Hybrid spawn integration tests May 8, 2026
ShadauxCat added 3 commits May 8, 2026 12:44
…migration' into experimental/v3-x-x/hybrid_spawn_integration_tests

# Conflicts:
#	com.unity.netcode.gameobjects/Runtime/Core/NetworkManager.cs
#	com.unity.netcode.gameobjects/Tests/Runtime/TestHelpers/NetcodeIntegrationTest.cs
#	testproject/Assets/Tests/Manual/DontDestroyOnLoad/ObjectToNotDestroyBehaviour.cs
@ShadauxCat ShadauxCat changed the title Hybrid spawn integration tests UnifiedNetcodeTransport refactor May 8, 2026
Comment on lines +474 to +482
#if UNIFIED_NETCODE
if (!NetworkConfig.Prefabs.HasGhostPrefabs)
{
#endif
// Process outbound messages
MessageManager.ProcessSendQueues();
#if UNIFIED_NETCODE
}
#endif
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
#if UNIFIED_NETCODE
if (!NetworkConfig.Prefabs.HasGhostPrefabs)
{
#endif
// Process outbound messages
MessageManager.ProcessSendQueues();
#if UNIFIED_NETCODE
}
#endif
#if !UNIFIED_NETCODE
// Process outbound messages
MessageManager.ProcessSendQueues();
#endif

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perhaps leave an XML comment with a cref to UnifiedNetcodeUpdateSystem.Update saying something about messages being processed prior to when N4E sends them?

Copy link
Copy Markdown
Member

@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.

Other than the minor define suggestion and comment about where the send queue is processing, it looks very nice Kitty!
:godmode:

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.

2 participants