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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions