Class TextBatcher

Hierarchy (View Summary)

Constructors

Properties

_batches: TextBatch[] = []
batches: readonly TextBatch[] = ...

Batches. All batches in this collection are at least partially occupied.

batchPool: Pool<TextBatch>

Object pool for batches

changeTracker: ChangeTracker

Changes to objects will be propagated to the change tracker

entryPool: Pool<TextBatchEntry>

Object pool for batch entries

maxGlyphCount: number
maxSize: number

Max size of a batch. Unit depends on batcher.

maxTextureCount: number
objectBatches: Map<TextLike, TextBatch> = ...

For faster lookup of object -> batch.

queuedAdds: TextBatchEntry[] = []

Newly added entries are queued until all changes are applied to a batch.

Methods