mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
better
This commit is contained in:
parent
27ca4c95a3
commit
618e94d31b
@ -131,11 +131,6 @@ public static void ApplyPatch(NetworkWriter A, NetworkReader delta, NetworkWrite
|
||||
//
|
||||
// DUPLICATE A needs to always send 'StartB', NOT 'StartA'.
|
||||
// FROM SCRATCH always needs to send 'StartA', NOT 'StartB'.
|
||||
|
||||
// convert A bytes to list for easier insertion/deletion
|
||||
// copy byte by byte to avoid new List(A.ToArray()) allocation.
|
||||
// TODO avoid List<byte> allocation
|
||||
// TODO linked list for performance? insert is expensive
|
||||
/*
|
||||
List<byte> B = new List<byte>();
|
||||
ArraySegment<byte> ASegment = A.ToArraySegment();
|
||||
|
Loading…
Reference in New Issue
Block a user