Batcher: readonly .batches

This commit is contained in:
vis2k 2023-04-01 11:17:37 +08:00
parent 105852bf68
commit 2ea568f404

View File

@ -38,7 +38,7 @@ public class Batcher
// it would allocate too many writers. // it would allocate too many writers.
// https://github.com/vis2k/Mirror/pull/3127 // https://github.com/vis2k/Mirror/pull/3127
// => best to build batches on the fly. // => best to build batches on the fly.
Queue<NetworkWriterPooled> batches = new Queue<NetworkWriterPooled>(); readonly Queue<NetworkWriterPooled> batches = new Queue<NetworkWriterPooled>();
// current batch in progress // current batch in progress
NetworkWriterPooled batch; NetworkWriterPooled batch;