Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: use byte[] directly instead of MemoryStream (#1618)
* perf: use byte[] directly instead of MemoryStream * Optimize writing int32 and int64 * Update Assets/Mirror/Runtime/NetworkWriter.cs Co-Authored-By: vis2k <info@noobtuts.com> * Update Assets/Mirror/Runtime/NetworkWriter.cs Co-Authored-By: vis2k <info@noobtuts.com> * Update Assets/Mirror/Runtime/NetworkWriter.cs * Start with bigger buffer * Woops, should have double checked suggestion * Removed invalid Test We should not require NetworkWriter to behave in certain way when Position is set to out of bounds. That is an invalid use of NetworkWriter, so NW should be free to do any behavior * smells * Update NetworkWriter.cs Co-authored-by: vis2k <info@noobtuts.com>
- Loading branch information
Showing
2 changed files
with
64 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters