renderer.Batcher
pykraken.renderer.Batcher A reusable memory buffer for batched rendering, designed for maximum throughput.
At a glance
3 membersReference
PYTHON APIConstructor
methodNo description supplied by the module.
free
methodfree(self) -> NoneFree the allocated internal memory.
preallocate
methodpreallocate(self, n_sprites: int) -> NonePreallocate internal buffers for a specific number of sprites. This prevents runtime allocations when drawing large batches.
Args
- n_sprites (
int) — The number of sprites to preallocate capacity for.