mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Batcher: readonly .batches
This commit is contained in:
parent
105852bf68
commit
2ea568f404
@ -38,7 +38,7 @@ public class Batcher
|
||||
// it would allocate too many writers.
|
||||
// https://github.com/vis2k/Mirror/pull/3127
|
||||
// => best to build batches on the fly.
|
||||
Queue<NetworkWriterPooled> batches = new Queue<NetworkWriterPooled>();
|
||||
readonly Queue<NetworkWriterPooled> batches = new Queue<NetworkWriterPooled>();
|
||||
|
||||
// current batch in progress
|
||||
NetworkWriterPooled batch;
|
||||
|
Loading…
Reference in New Issue
Block a user