Protected
Readonly
_batchesReadonly
batchesBatches. All batches in this collection are at least partially occupied.
Protected
Readonly
batchObject pool for batches
Protected
Readonly
changeChanges to objects will be propagated to the change tracker
Protected
Readonly
entryObject pool for batch entries
Readonly
maxReadonly
maxMax size of a batch. Unit depends on batcher.
Readonly
maxProtected
Readonly
objectFor faster lookup of object -> batch.
Protected
Readonly
queuedNewly added entries are queued until all changes are applied to a batch.
Protected
addQueue an entry for adding. Apply with Batcher.finalize.
Entry to add
Protected
addAdd an entry to a batch.
Batch to add entry to
Entry to add
Protected
canCheck if a batch can contain an entry.
Batch to check
Entry
Mark an object as changed. Changes are queued, apply with Batcher.finalize.
Changed object
Protected
changeApply changes of an object to its entry (and possible batch).
Batch entry belongs to. Can be undefined
in case entry does not have a batch
(e.g., when only queued for an add)
Entry to change
Associated object
Delete an object and its entry. Deletes are queued, apply with Batcher.finalize.
Object to delete
true
if an entry was deleted
Finalize batches for this tick by applying all queued changes, adding all queued new entries, and cleaning up unused batches.
Finalized batches
Check if object
is part of this batcher.
Object
true
if batcher contains the object