You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Okay so I did some digging around and noticed some things:
NetBuffer / NetMessage have recycling and the data is dumped back into a pool, however the default size is tiny and it continuously re-allocates. This is probably better off just using its own created ArrayPool instead which would dramatically reduce the heap allocations for Lidgren for us.
Delayed packets allocates a lot and should also be using GetStorage.
The text was updated successfully, but these errors were encountered:
Okay so I did some digging around and noticed some things:
NetBuffer / NetMessage have recycling and the data is dumped back into a pool, however the default size is tiny and it continuously re-allocates. This is probably better off just using its own created ArrayPool instead which would dramatically reduce the heap allocations for Lidgren for us.
Delayed packets allocates a lot and should also be using GetStorage.
The text was updated successfully, but these errors were encountered: