CLASS v1.8.0

renderer.Batcher

pykraken.renderer.Batcher

A reusable memory buffer for batched rendering, designed for maximum throughput.

Reference

PYTHON API

No description supplied by the module.

free

method
free(self) -> None

Free the allocated internal memory.

preallocate(self, n_sprites: int) -> None

Preallocate 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.

Find your next step

Start typing to search the manual.