FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: Message sending GC allocations by EmandM · Pull Request #4119 · Unity-Technologies/com.unity.netcode.gameobjects · GitHub

fix: Message sending GC allocations - #4119

Merged
EmandM merged 6 commits into
develop-2.0.0from
fix/gc-allocs
Aug 11, 2026
Merged

fix: Message sending GC allocations#4119
EmandM merged 6 commits into
develop-2.0.0from
fix/gc-allocs

Conversation

EmandM commented Aug 7, 2026

Copy link
Copy Markdown
Member

Purpose of this PR

Fixes some GC allocations in message hot paths.

Jira ticket

fixes: #4091

Changelog

  • Fixed: Resolved GC allocations in some hot paths

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.

Up-port

Up-port needed

Backports

n/a

EmandM requested a review from a team as a code owner August 7, 2026 16:35

codecov-github-com Bot commented Aug 7, 2026
edited
Loading

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 93.33333% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...eobjects/Runtime/Messaging/Messages/RpcMessages.cs 0.00% 2 Missing ⚠️
@@                Coverage Diff                @@
##           develop-2.0.0    #4119      +/-   ##
=================================================
+ Coverage          73.88%   73.94%   +0.06%     
=================================================
  Files                172      172              
  Lines              28095    28099       +4     
=================================================
+ Hits               20758    20779      +21     
+ Misses              7337     7320      -17     
Flag Coverage Δ
NGOv2_project_testproject_ubuntu_pinnedTrunk 73.65% <93.33%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
.../Messaging/Messages/NetworkVariableDeltaMessage.cs 77.92% <100.00%> (ø)
...objects/Runtime/Messaging/NetworkMessageManager.cs 82.39% <100.00%> (ø)
...netcode.gameobjects/Runtime/Metrics/MetricHooks.cs 100.00% <100.00%> (ø)
...Runtime/NetworkVariable/Collections/NetworkList.cs 79.75% <100.00%> (-0.07%) ⬇️
...ode.gameobjects/Runtime/Serialization/BitReader.cs 94.23% <100.00%> (ø)
...eobjects/Runtime/Serialization/FastBufferReader.cs 80.03% <100.00%> (ø)
...eobjects/Runtime/Messaging/Messages/RpcMessages.cs 42.61% <0.00%> (+0.94%) ⬆️

... and 1 file with indirect coverage changes

Components Coverage Δ
com.unity.netcode.gameobjects 73.94% <93.33%> (+0.06%) ⬆️

ℹ️ Need help interpreting these results?

NoelStephensUnity left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good!
👍

EmandM merged commit 3d9f18a into develop-2.0.0 Aug 11, 2026
26 checks passed
EmandM deleted the fix/gc-allocs branch August 11, 2026 20:03
This file contains hidden or 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
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.

Lot of GC when receive and send messages

3 participants


Back | FazBrowse Home | New Git URL