Skip to content

Commit

Permalink
fix: removing debug logs from resize buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Jul 31, 2021
1 parent 0b603fe commit 5f3524c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Assets/Mirage/Runtime/Serialization/NetworkWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,14 @@ public NetworkWriter(int minByteCapacity, bool allowResize)
void ResizeBuffer()
{
int size = managedBuffer.Length * 2;
Debug.LogWarning($"Resizing buffer, new size:{size}");

Debug.Log(handle.AddrOfPinnedObject());
FreeHandle();

Array.Resize(ref managedBuffer, size);
bitCapacity = size * 8;

CreateHandle();
Debug.Log(handle.AddrOfPinnedObject());
}
void CreateHandle()
{
Expand Down

0 comments on commit 5f3524c

Please sign in to comment.