Skip to content

Lot of GC when receive and send messages #4091

Description

@hardsmoke

Description

Hi, I'm experiencing a lot of memory allocations when sending (NetworkMessageManager.SendMessage) and receiving messages (NetworkMessageManager.ReceiveMessage). These allocations occur when sending RPCs, as well as due to built-in networking components (e.g., NetworkTransform). Profiling was performed by the host using a debug build of IL2CPP with the deep profiler. There were five people (including the host) logged on to the server at the time.

Screenshots

Image Image Image

Environment

  • OS: Windows 11
  • Unity Version: 6000.3.16f1
  • Netcode Version: 2.11.2
  • Netcode Topology: Host - Client

Metadata

Metadata

Assignees

Labels

stat:InvestigatingIssue is currently being investigatedstat:awaiting-responseAwaiting response from author. This label should be added manually.type:bugBug Reporttype:supportQuestions or other support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions