mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00: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.
|
// 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user